Commit Graph

42252 Commits

Author SHA1 Message Date
Cosimo Cecchi
4e40260d73 placessidebar: escape tooltip text before setting it
gtk_tree_view_set_tooltip_column() specifies that markup in the text
should be escaped.
This fixes critical warnings when hovering over items in the sidebar for
bookmarks that have markup characters in their names.

https://bugzilla.gnome.org/show_bug.cgi?id=719683
2015-05-28 23:58:58 -04:00
Carlos Garnacho
873cc0e352 notebook: Fix assert in ::drag-motion
The drag destination might be empty, we shouldn't be checking whether
it contains pages at all. Instead, check the source notebook, which
ought to have a selected page if you're dragging something from there.

https://bugzilla.gnome.org/show_bug.cgi?id=749893
2015-05-26 18:02:03 +01:00
Carlos Garnacho
cef7b4670f scrolledwindow: reset more Indicator state on ::unmap
If a GtkScrolledWindow is just unmapped and promptly mapped again, the
indicators are left in a semi-visible state, so the GdkWindow isn't raised
properly above scrolledwindow content. This inconsistent state went away
the next time the indicator is hidden.

So, reset all state about indicator window visibility, animation
progress and conceil timer on ::unmap, this will be enough to make the
indicators start out hidden like on newly created scrolledwindows.
2015-05-22 21:24:32 +02:00
Jonas Ådahl
90ee25f8e9 GtkWindow: Don't assume no shadow width even when not supported
Even if a window doesn't support client side shadow
(gtk_window_supports_client_shadow returns FALSE), don't assume the
shadow width is zero, as CSD may have been enabled anyway (meaning
priv->client_decorated is TRUE). In that case we still need to report
the correct width.

https://bugzilla.gnome.org/show_bug.cgi?id=749451
2015-05-22 00:15:46 -04:00
Matthias Clasen
c0f0874cf9 Don't add strings on the stable branch
No need to upset translators with a temporary string that will
hopefully be replaced by an implementation at some point.
2015-05-18 08:59:02 -04:00
Martin Srebotnjak
aaee5f77ca Updated Slovenian translation 2015-05-17 20:49:44 +02:00
Martin Srebotnjak
64eead25c0 Updated Slovenian translation 2015-05-17 20:44:50 +02:00
Marek Černocký
5185ba38bb Updated Czech translation 2015-05-17 10:32:59 +02:00
Piotr Drąg
23374f9f83 Updated Polish translation 2015-05-15 17:56:44 +02:00
Piotr Drąg
509741b1d7 Updated POTFILES.in 2015-05-15 17:50:57 +02:00
Marek Kasik
40b489b6e2 printing: Check connection to remote CUPS server on correct port
Add parameter for specification of port to gtk_cups_connection_cups_new().
Use default port returned by ippPort() if the given port is lower than 0.

https://bugzilla.gnome.org/show_bug.cgi?id=693738
2015-05-13 12:30:15 +02:00
Matthias Clasen
4217fccbc9 3.16.3 3.16.3 2015-05-11 14:47:17 -04:00
Matthias Clasen
086e885c02 Fix a11y tests
The output of the about dialog test is affected by the keynav
fixes.
2015-05-11 14:47:17 -04:00
Lars Uebernickel
b737bfec24 Allow overriding WM_CLASS from the command line
Even when the program itself calls gdk_set_program_class(). There's
currently no way for this function to be called without breaking gdk's
--class command line option, because you cannot call it before
gtk_init().

https://bugzilla.gnome.org/show_bug.cgi?id=747634
2015-05-11 14:22:15 -04:00
Matthias Clasen
570fd6c185 gtk-demo: Remove an unncessary define
The changedisplay example no longer uses and deprecated
API, so don't disable deprecations.
2015-05-11 14:22:08 -04:00
Matthias Clasen
151e74c12d Revert "Work around a pkg-config bug"
This reverts commit 57751fa391.

I've been told that this is not, in fact, a pkg-config bug,
but a pkg-config feature.
2015-05-11 14:21:40 -04:00
Philip Chimento
09408aca1e quartz: Non-implementation of GdkGLContext
This makes sure the Quartz backend returns an error when asked to create
a GL context, rather than crashing because of a NULL vfunc.

https://bugzilla.gnome.org/show_bug.cgi?id=740199
2015-05-11 14:21:32 -04:00
Sjoerd Simons
103346c780 notify test: Don't test object relying on dbus connections
Don't test types that rely on a pre-existing dbus session bus.

https://bugzilla.gnome.org/show_bug.cgi?id=749009
2015-05-11 14:21:04 -04:00
Matthias Clasen
ed9b598e9b GtkRecentChooser: Use a better busy cursor 2015-05-11 14:20:57 -04:00
Matthias Clasen
927d8e84dc GtkPrintUnixDialog: Use a better busy cursor 2015-05-11 14:20:49 -04:00
Garrett Regier
9c307fedc9 GtkFontChooserWidget: Remove unused struct field
This was added accidentally in a recent patch.

Signed-off-by: Garrett Regier <garrettregier@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=748992
2015-05-11 14:20:27 -04:00
Jakub Steiner
27130ab6b1 Adwaita: tone down popover dropshadow 2015-05-11 14:20:08 -04:00
Jonas Ådahl
0f18e90734 GtkWindow: Manually set CSD should enable shadow width calculation
If CSD is enabled with shadow even though it "shouldn't"*, the width
should still be calculated correctly. This fixes a regression caused by
b1e5ad469c.

* gtk_window_should_use_csd () returns false

https://bugzilla.gnome.org/show_bug.cgi?id=748615
2015-05-11 14:19:47 -04:00
Jonas Ådahl
be8ff8e56a GtkWindow: Get the correct shadow width even before window is realized
The window state 'client_decorated' will only be set the window is being
realized. If anyone tries to get the shadow size before that it'd get
the with as if there always was no shadow.

This avoids negative sized opaque regions caused by the allocation being
smaller than shadow.

https://bugzilla.gnome.org/show_bug.cgi?id=748615
2015-05-11 14:19:32 -04:00
Matthias Clasen
6e92757ed0 GtkFontChooserWidget: Listen for fontconfig changes
We were relying on indirectly getting notify when fontconfig
configuration changes, by GtkSettings translating the timestamp
change into a style-invalidation, which gets fed through the
css invalidation machinery. That machinery has gotten good enough
at optimizing away redundant changes that it no longer emits
::style-updated in this case.

So, instead make the font chooser listen directly to what it
cares about: the fontconfig change notification from GtkSettings.
2015-05-11 14:19:21 -04:00
Emmanuele Bassi
d2df0aa7ca fontchooser: Use gtk-fontconfig-timestamp setting
We can use the GtkSettings:gtk-fontconfig-timestamp property to decide
whether or not we should reload fonts on style and screen changes. This
should avoid doing a lot of work with large font collections when only
the theme has changed.

https://bugzilla.gnome.org/show_bug.cgi?id=748782
2015-05-11 14:19:14 -04:00
Emmanuele Bassi
db4b1e62fe settings: Wayland-only systems also use fontconfig
We're relying on the X11 backend being compiled in, but that may not be
the case.

https://bugzilla.gnome.org/show_bug.cgi?id=748782
2015-05-11 14:18:46 -04:00
Christian Hergert
68e31e19fe inspector: allow object read-only properties in prop-editor
If we have a GObject property that is also a GObject, we should be able
to view additional information on that object (even if the param spec
is read-only).
2015-05-11 14:18:11 -04:00
Руслан Ижбулатов
9cbcd541d9 W32: Add a mapping for "left_ptr_watch" cursor
This is purely to support gdk_cursor_new_from_name().
In particular, its counterpart, gdk_cursor_new_for_display(), will not
be affected, because there's no GDK_LEFT_PTR_WATCH cursor type,
and because i don't have a fallback cursor bitmask for gdk/win32/xcursors.h
2015-05-11 14:17:51 -04:00
Jakub Steiner
3d9f024deb HC: implement overlay scrollbar theming
while the behavior was in place, the specific theming for
overlay scrollbars was missing, and content was hidden.
2015-05-11 14:17:31 -04:00
Matthias Clasen
2252876614 Drop PANGO_ENABLE_BACKEND
Not needed for a long time now.

https://bugzilla.gnome.org/show_bug.cgi?id=748783
2015-05-11 14:16:40 -04:00
Matthias Clasen
2d873f3449 docs: Add a note about button 4 & 5 2015-05-11 14:16:09 -04:00
Matthias Clasen
adeca58af7 xi2: Don't set button mask 4 and 5
We interpret buttons 4-7 as old-school scroll events, so it does
not make sense to add these to the mask. Also fix an off-by-one
in the loop here, buttons_mask is 1-based.
2015-05-11 14:16:02 -04:00
Matthias Clasen
ee184e895a GtkAboutDialog: Make credits section keyboard navigatable
Its the right thing to do.
2015-05-11 14:15:51 -04:00
Matthias Clasen
2f91f31b1a GtkAboutDialog: Fix some focus issues
Making a container focusable is rarely the right thing to do.
It typically breaks the focus chain, and makes the container
contents unfocusable, as was the case here.
2015-05-11 14:15:45 -04:00
Timm Bäder
6f7e6f68be inspector/misc-info: Fix typo 2015-05-11 14:15:30 -04:00
Matthias Clasen
7802bbd9c5 GtkSearchEngine: Use all search engines
Just using tracker does not work well if you are searching in
non-indexed locations, such as git checkouts or network mounts.

Ideally, we'd decide the 'best' engine to use for each location.
Since that is not easy to do, just run them in parallel for now,
which is the same strategy that nautilus uses.
2015-05-11 14:14:44 -04:00
Руслан Ижбулатов
1bb0c94767 Rewrite simple search engine to use GFile and breadth order
https://bugzilla.gnome.org/show_bug.cgi?id=746916
2015-05-11 14:14:38 -04:00
Matthias Clasen
1062be1115 GtkSearchEngine: Drop unused functionality 2015-05-11 14:13:08 -04:00
Matthias Clasen
2954c9c09b Drop a redundant call
g_thread_supported() is always TRUE nowadays, so drop the call.
2015-05-11 14:12:51 -04:00
Matthias Clasen
f9bf9295c5 GtkFileChooser: Use a better busy cursor
It is possible to interact with the file chooser while
things are loading, so use a cursor that indicates this,
if we have one.
2015-05-11 14:12:44 -04:00
Руслан Ижбулатов
d041ff409a Fix use-after-free in gdk_window_end_paint()
It's a miracle that this code ever worked.
2015-05-11 14:12:12 -04:00
Alexander Larsson
efaaa3a4a8 wayland: Don't send bogus values for cursor surface buffer/scale
I was getting really weird values for scale for the blank cursor used
when hiding the cursor in a GtkEntry when typing, this was caused
by gdk_wayland_device_update_window_cursor sending random values
when the returned buffer was NULL.

We fix this by just not sending any buffer or scale updates in this
case.
2015-05-11 14:11:44 -04:00
Matthias Clasen
385798c89f Fix inclusion of examples in docs in non-srcdir builds
This is a bit messy, since xsltproc insists on stripping relative
paths to the basename before consulting the paths.

https://bugzilla.gnome.org/show_bug.cgi?id=748640
2015-05-11 14:11:17 -04:00
Jakub Steiner
d597d5beca HC: include a missing sass function
- used in the color widget
2015-05-11 14:10:39 -04:00
Jakub Steiner
32e7d5ae59 HC: tone down backdrop for gtk switches
https://bugzilla.gnome.org/show_bug.cgi?id=746925
2015-05-11 14:10:25 -04:00
Matthias Clasen
cc03e3319c docs: Add an cross-reference to template docs 2015-05-11 14:08:04 -04:00
Matthias Clasen
5efed59da1 Improve the docs for gdk_window_set_opaque_region
Fix several typos and annotate the region parameter
as allow-none.
2015-05-11 13:37:59 -04:00
Carlos Garnacho
5174ad9001 wayland: Don't unset the selected mimetype on drop_reply
gdk_wayland_drop_context_set_status() can't do much else currently besides
picking a mimetype (the first one is currently chosen). This may incorrectly
unset the mimetype chosen on .receive(), so the transfer is cancelled before
it even starts.

At the time drop_reply happens, we should have already picked a mimetype
along the way, so only cover for accepted=FALSE in order to unset it.
2015-05-11 13:37:53 -04:00
Carlos Garnacho
732e313a7a wayland: Plug leak
We leak refs on the dest window if it gets set multiple times, expected to
happen as the DnD operation moves across the window.
2015-05-11 13:37:48 -04:00