Commit Graph

47270 Commits

Author SHA1 Message Date
Misty De Meo
d7c1a34bfd configure: fix detecting CUPS 2.x
https://bugzilla.gnome.org/show_bug.cgi?id=767766
2016-06-17 14:47:12 +02:00
Matthias Clasen
9a81e714d6 range: Add a queue_resize call
This is a workaround for a regression in updating scrollbars in
some applications; notably eog. We haven't fully tracked down yet
why a queue_allocation is not sufficient here, it should.
2016-06-06 12:31:41 -04:00
Timm Bäder
3659eb65d0 Scale: Set the correct value alignment
We're measuring both the width of the minimal and the maximal value for
the value gadget, but only give the value the minimal width for its
current value, resultnig in an always left-aligned value.

Fix this by assigning the width of the value gadget to the value layout
and letting pango align the text inside the layout.

https://bugzilla.gnome.org/show_bug.cgi?id=766120
2016-06-01 14:27:54 +02:00
Lapo Calamandrei
b1a59daa71 Adwaita: ensure menuitem labels are not overridden
see https://bugzilla.gnome.org/show_bug.cgi?id=767058
2016-05-31 21:01:49 +02:00
Lapo Calamandrei
72ad8b58c5 Adwaita: explicitelly set label caret-color to currentColor
since it doesn't always inherit 'color' color as it should.
2016-05-30 14:23:11 +02:00
Lapo Calamandrei
5c763e97c4 Adwaita: make selection on infobars visible
see https://bugzilla.gnome.org/show_bug.cgi?id=745622
2016-05-30 14:02:36 +02:00
Lapo Calamandrei
6e56aaffe3 Adwaita: remove textview border
see https://bugzilla.gnome.org/show_bug.cgi?id=764203
2016-05-27 11:34:47 +02:00
Kjartan Maraas
ab598631af Updated Norwegian bokmål translation. 2016-05-23 18:56:02 +02:00
Matthias Clasen
bbf775301a 3.20.6 3.20.6 2016-05-23 07:59:21 -04:00
Florian Müllner
458c0b9525 stack: Only map children when necessary
gtk_widget_set_parent() will map the widget if the parent is mapped
and the widget is both visible and child-visible. As we currently
only set the child visibility after adding the child, we immediately
map all children that are added to a mapped stack, even when they
are not actually shown. Avoid this by setting the child visibility
before adding the child, so widgets are only mapped when shown.

https://bugzilla.gnome.org/show_bug.cgi?id=766737
2016-05-23 07:58:42 -04:00
Matthias Clasen
a2d723c133 treeview: Fix a rubberbanding-related crash
When starting a rubberband selection from an empty area, we could run
into crashes if the selection moves over the rows and then back out
to unpopulated area. Handle this case without crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=766336
2016-05-23 07:58:42 -04:00
Carlos Garnacho
3270bdb981 popover: set priv->window before setting doing add_popover() on it
If the popover's relative-to widget is unparented/reparented, we end
up unparenting/reparenting the popover as well. In that case, at the
moment of reparenting, the widget might have been visible (and is
thus mapped again), but priv->window hasn't been set yet.

We must first set priv->window, and then call gtk_window_add_popover(),
that way gtk_popover_map() has its prerequisites straight.

https://bugzilla.gnome.org/show_bug.cgi?id=766323
2016-05-21 20:41:54 +02:00
Khaled Hosny
924c6a679b Update Arabic translation 2016-05-21 15:50:26 +02:00
Lapo Calamandrei
f62505a77f Adwaita: add vertical margins to switches on a headerbar
See https://bugzilla.gnome.org/show_bug.cgi?id=766642
2016-05-20 15:42:22 +02:00
Lapo Calamandrei
375a1282f4 Adwaita: shave 1px from the switch
make the switch height and width 1px smaller.
2016-05-20 15:41:25 +02:00
Matthias Clasen
ca8d51e6d0 Revert "scrolledwindow: Remove child before destroying self"
This reverts commit dcb4b48b29.

This was causing crashes in the filechooser in some applications.

https://bugzilla.gnome.org/show_bug.cgi?id=766694
2016-05-20 09:23:51 -04:00
Ignacio Casal Quinteiro
cdb3271346 gtktextview: fix < public > comment
This was causing problems with the gtk# scanner
2016-05-20 09:09:10 +02:00
Matthias Clasen
1e419a94b5 3.20.5 3.20.5 2016-05-19 12:43:00 -04:00
Matthias Clasen
ff14bb504b Updates 2016-05-19 12:37:54 -04:00
Matthias Clasen
00d1f73204 gtk-demo: Fix revealer demo
This only used by luck before. We are changing a property from the
::notify handler for that property. Now that GtkRevealer is notifying
the property when it stops animations on unmap, we end up in a life
lock situation where we never make it out of the notify queue.

Fix this by not restarting the animation if the widget is unmapped.
2016-05-19 12:37:54 -04:00
Matthias Clasen
9a60a3659f scale css node test: Adapt to changes
The style classes are reflected in the output here.
2016-05-19 12:27:08 -04:00
Matthias Clasen
fcbb6b7fe3 wayland: Survive lack of settings
This can be made to happen eg by setting XDG_DATA_DIRS and
XDG_DATA_HOME to /. Not a useful value, but not a good reason
to crash either.
2016-05-19 12:10:07 -04:00
Matthew Waters
246385a8e7 gdk/wayland: use the multi-thread safe wayland API
This is required for proper integration with any other library/application that
may perform wayland API calls and poll() the wayland fd from multiple threads.
Using wl_display_dispatch{_queue}() is thread-safe if not mixed with custom
poll() usage, which GSource/GMainContext does.

Essentially, the problem is that multiple threads polling and reading
the same fd is extremely racy.  Use the wayland provided API for allowing
concurrent access to the wayland display fd.

See the wayland man pages for wl_display_prepare_read(),
wl_display_cancel_read() and wl_display_read_events() for more details.

https://bugzilla.gnome.org/show_bug.cgi?id=763852
2016-05-19 12:10:07 -04:00
Debarshi Ray
1e2bde6971 scrolledwindow: Fix typo in get_preferred_height calculation
When we are beginning to calculate the height, if the vscrollbar_policy
is not GTK_POLICY_NEVER, and there is no min-content-height, then we
need some small non-zero value to get started. The idea is to always
ask for at least enough to fit the horizontal scrollbar.

Simply put, this should be the mirror image of the corresponding width
calculation code.

Those who got used to the buggy behaviour might notice that their
GtkScrolledWindows are not as tall as they used to be.

Fall out from 55196a705f

https://bugzilla.gnome.org/show_bug.cgi?id=766530
2016-05-19 12:10:07 -04:00
Matthias Clasen
7d2f54f0f3 icon theme: Add a warning
Warn about the situation when we've found a resource or file path,
but gdk-pixbuf fails to give us a pixbuf. This generally means that
either pixbuf loaders are not found or the shared-mime database
is missing.
2016-05-19 12:10:07 -04:00
Timm Bäder
706b3ffc82 stack: Don't underallocate the last_child 2016-05-19 12:10:07 -04:00
Timm Bäder
f5b76a1f56 stack: Remove some code duplication 2016-05-19 12:10:07 -04:00
Matthias Clasen
8601c0eccd places sidebar: Avoid markup confusion in tooltips
At one point, the sidebar was using gtk_treeview_set_tooltip_column,
which expects tooltips to be markup. With the listbox-based sidebar,
we don't do that anymore. So don't escape the tooltip text.

https://bugzilla.gnome.org/show_bug.cgi?id=766175
2016-05-19 12:10:07 -04:00
Matthias Clasen
8e2cf127e6 x11: Trap possible X error
XIGetClientPointer can generate X errors (e.g. when the X server
does not support XI2. Trap them and carry on.

https://bugzilla.gnome.org/show_bug.cgi?id=766233
2016-05-19 12:10:07 -04:00
Timm Bäder
077e1999b3 scale: Remove double nullable annotation
Being both (allow-none) and (nullable) at the same time is a bit much.
Was from 591e7f5ef8.
2016-05-19 12:10:07 -04:00
Timm Bäder
5fb18692e0 widget: Add Since annotation to gtk_widget_queue_allocate 2016-05-19 12:10:07 -04:00
Benjamin Otte
dcb4b48b29 scrolledwindow: Remove child before destroying self
Children tend to call back into the scrolled window while being removed
and that doesn't work too well if the scrolled window is destroyed
already as Christian Hergert found out.
2016-05-19 12:10:07 -04:00
Benjamin Otte
e7e55d13a4 cssimage: Make it possible to shrink builtin check/optionmarks
... below 7px of size.
2016-05-19 12:10:07 -04:00
Matthias Clasen
adcbd8add9 gtk3-demo: Add a close button to the markup window 2016-05-19 12:10:07 -04:00
Matthias Clasen
13a14d071a gtk-demo: Don't duplicate text in markup example
I forgot to clear the buffer before inserting the new markup. Oops.
2016-05-19 12:10:07 -04:00
Matthieu Gautier
2cb24c7975 revealer: emit notify::child-revealed when animation stops
Depending of float rounding during target calculation, the size of the
GtkRevealer can be set to zero will the animation is not finished.
If the GtkRevealer is in a GtkPaned, it will be hidden and so the animation
will be stopped before it is finished.

In this case, force the emission of the child-revealed signal to let
client code know the animation is finished.

https://bugzilla.gnome.org/show_bug.cgi?id=765973
2016-05-19 12:10:07 -04:00
Timm Bäder
0377a8c408 infobar: Fix typo
Style class names are prefixed with a '.'
2016-05-19 12:10:07 -04:00
Lapo Calamandrei
101c06da53 Adwaita: fix scale theming
rely on toplevel styleclass for scale with marks.

See https://bugzilla.gnome.org/show_bug.cgi?id=766440
2016-05-19 17:27:00 +02:00
Lapo Calamandrei
fb3e626400 color scale: Really sync style classes with GtkScale
sync the alpha scale styleclass too.
2016-05-19 17:24:51 +02:00
Matthias Clasen
6170149393 color scale: Sync style classes with GtkScale
We should use the same style classes here, to avoid theme
confusion.
2016-05-19 11:06:51 -04:00
Ignacio Casal Quinteiro
ee841a282b gtkselectionprivate: minor style fix
This seems to make some issue with the gtk# scanner.
2016-05-19 16:57:55 +02:00
Matthias Clasen
1fde631031 scale: Use more succinct names for style classes
Use .marks-before/after to indicate the presence of marks.
As Lapo points out, compatibility with the previous names
is not really that important, since everything else changed
around it.

https://bugzilla.gnome.org/show_bug.cgi?id=766440
2016-05-19 09:50:23 -04:00
Matthias Clasen
e441c17a0a scale: Bring back marks-related style classes
It turns out that it is too hard (and in some cases, impossible)
to get this information from node positioning, so bring back the
.scale-has-marks-above/below style classes on the main node.

This should allow us to fix the 'pointy sliders'.

https://bugzilla.gnome.org/show_bug.cgi?id=766440
2016-05-18 13:02:11 -04:00
Carlos Garnacho
aec4dbfa94 x11/dnd: Ignore grab broken events from other devices than our DnD device.
The GdkDragContext should only listen to GDK_GRAB_BROKEN events sent to
its own pointer device. It turns out that the passive key grabs mistake
GDK into sending a GdkEventGrabBroken on the master keyboard, which the
DnD machinery mistakes as a signal to cancel the operation.

https://bugzilla.gnome.org/show_bug.cgi?id=766442
2016-05-18 13:09:55 +02:00
Baurzhan Muftakhidinov
d1585a7a60 Updated Kazakh translation 2016-05-17 10:18:52 +00:00
Matthias Clasen
b893b62d7a Docs: Clarify life cycle issue
gtk_gesture_get_last_event() wasn't very clear about how long
it is safe to use the returned pointer.

(cherry picked from commit c891ceb31d)
2016-05-17 10:30:56 +02:00
Matthias Clasen
e006f3ca98 DND: Avoid a use-after-free
Cancelling the gesture causes the last_event pointer to become
invalid. Make a copy of the event so we can keep using it
regardless of the gesture state.

(cherry picked from commit 358eec2972)
2016-05-17 10:30:44 +02:00
Tiago Santos
4424bf8135 Updated Portuguese translation 2016-05-15 21:42:16 +00:00
Tiago Santos
818266a805 Updated Portuguese translation 2016-05-15 21:25:26 +00:00
Chun-wei Fan
1994f37481 Visual Studio builds: Refine "installation" process
Split out the part where we generate/update the caches for the GSchemas
and the icons, so that it is easier to ensure that things continue to
function correctly when we have GlibEtcInstallRoot != CopyDir.
2016-05-10 13:33:40 +08:00