Commit Graph

40565 Commits

Author SHA1 Message Date
Matthias Clasen
051bd1a06b GtkSwitch: fix a reentry issue
The introduction of state broke some users which relied on
being able to set active in a notify::active handler.

https://bugzilla.gnome.org/show_bug.cgi?id=751754
2015-07-07 12:55:32 -04:00
Carlos Garnacho
33e6b73145 x11: Query pointer devices' scroll valuators on toplevel enter events
We used to "invalidate" scroll valuators, so the next scroll event could
be used as the base for the next scroll deltas. This has the inconvenience
that it invariably consumes the first event received after enter and,
due to interactions with WM overeager passive button grabs, there's a
possibility we don't scroll at all if we receive interleaved "smooth
scroll" XI_Motion events and XI_Enter events (Normally triggered by regular
scroll wheels in mice).

In order to fix this, and at the expense of some sync-call overhead on
XI_Enter events (one XIQueryDevice call per slave device), query the
current scroll valuator state for all the slaves of the entered pointer,
so we do know beforehand the right base values. If new devices are plugged
while the pointer is on top of the client, the initialized scroll values
will match the valuators'.

https://bugzilla.gnome.org/show_bug.cgi?id=750994
https://bugzilla.gnome.org/show_bug.cgi?id=750870
2015-07-07 12:55:26 -04:00
Carlos Garnacho
602d1dd9f6 x11: Avoid X error traps within server grabs
gdk_x11_device_xi2_window_at_position() may attempt to push/pop
a few error trap pairs while traversing the window tree. Move it
outside the server grab, and around the multiple XIQueryPointer
calls we may do here.

https://bugzilla.gnome.org/show_bug.cgi?id=751739
2015-07-07 12:55:20 -04:00
Krzesimir Nowak
6cad13c75a broadway: Fix memleak in error case
https://bugzilla.gnome.org/show_bug.cgi?id=751752
2015-07-07 12:55:13 -04:00
Jasper St. Pierre
253ce543df window: Don't send startup notifications for offscreen / popup windows
The WM isn't aware of O-R (popup) or offscreen windows. If somebody
maps an offscreen or a popup GTK+ window before the main window, we'll
complete the sequence before a "real" window is mapped. Make sure to
ignore these for startup notifies.
2015-07-07 12:55:06 -04:00
Alexander Larsson
64770685a9 broadway: Handle shm_open failing by falling back on tmp files
This is required if /dev/shm is not mounted on your system, which can
happen for instance in certain container configurations.
2015-07-07 12:55:00 -04:00
cedlemo
fce7f71772 GtkImage: Make resource property work properly
gtk_image_set_from_resource was setting the resource_path,
only to have it overwritten again before returning. That
is not as it should be, so change things to set the resource
path late.

https://bugzilla.gnome.org/show_bug.cgi?id=751443
2015-07-07 12:54:53 -04:00
Matthias Clasen
ced54098af GtkRange: Make drag gesture less agressive
Moving the mouse while pressing one of the steppers was making
the slider jump to the end, unexpectedly. This was caused by the
drag gesture kicking in when it shouldn't. Fix this by making
all drag gesture signal handlers only do something if we are in
a drag thats started on the slider.

https://bugzilla.gnome.org/show_bug.cgi?id=751050
2015-07-07 12:53:06 -04:00
Caolán McNamara
8de3a2cd23 file chooser: Avoid tall combos
The filter combo box in the file chooser was stretching to match
the height of the extra widgets next to it. Since, stretched combo
boxes are not a pretty sight, make it stick to the top instead.

Patch by Caolán McNamara,

https://bugzilla.gnome.org/show_bug.cgi?id=751227
2015-07-07 12:52:58 -04:00
Alexander Larsson
796eaa5d18 configure: test have_docbook_style != yes, not have_docbook_dtd 2015-07-07 12:52:50 -04:00
Matthias Clasen
2d1ea4c1a0 color editor: make popups toggleable
The popups on the color editor are somewhat hard to get rid of.
Arrange things so that clicking the same control again dismisses
the current popup.
2015-07-07 12:48:41 -04:00
Matthias Clasen
cf6851bd8d Don't show a menu on the color editor swatch
There's nothing to customize here, so no need to show a menu.
2015-07-07 12:48:33 -04:00
Matthias Clasen
01fec30f5a Add a way to avoid menu on color swatches 2015-07-07 12:48:27 -04:00
Cosimo Cecchi
85aeb2e43b testsuite: add a test for non-square symbolic icons
To verify the previous fix.

https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-07-07 12:48:01 -04:00
Cosimo Cecchi
ee555c02a6 icontheme: don't modify symbolic SVG dimensions when recoloring
When recoloring symbolic SVG, do not modify the original width and
height of the passed-in file; the function later will scale the image
through gdk_pixbuf_new_from_stream_at_scale(), but we should still
use the original size to create the proxy SVG, or the image will
possibly be doubly-resized or blurry.

https://bugzilla.gnome.org/show_bug.cgi?id=750605
2015-07-07 12:47:54 -04:00
Matthias Clasen
626a2cf0af recent chooser: Make it expand
It is expected that the list fills the available space.

https://bugzilla.gnome.org/show_bug.cgi?id=750690
2015-07-07 12:47:47 -04:00
Benjamin Otte
d8e880f7f1 fontchooser: Don't cause "row-changed" signal in cell data func
The font chooser delays creating the font description from the font face
as long as possible (it's slow). Because we use fixed height mode, we
only have to create font descriptions for rows we are actually going to
show.

This was achieved by looking at the font description column and if it
was NULL, we created a font description and gtk_list_stiore_set() it.
Unfortunately this caused a "row-changed" signal to be emitted and this
emission could happen during the cell data func.
And that caused infinite loops with accessibility when you were unlucky.

This change replaces the NULL font description with an empty one and
instead of setting the correct font description, we
pango_font_description_merge() it in. This way, the list store doesn't
change and no signals are emitted.

https://bugzilla.redhat.com/show_bug.cgi?id=1197267
2015-06-12 16:51:38 -04:00
John Ralls
4983d437e3 Bug 745957 - GTK+/Quartz >= 3.14.8: Symbol not found: _gtk_drag_cancel
Implement gtk_drag_cancel, made public in c160ba069 and 62616a71, in
gtkdnd-quartz.c.
2015-05-31 11:59:02 -07:00
Cédric Valmary
74b5e315ce Updated Occitan translation 2015-05-29 20:38:37 +00:00
Jakub Steiner
e4e60b251e set background for menubar
- only an issue in 3.14

https://bugzilla.gnome.org/show_bug.cgi?id=750011
2015-05-29 15:43:46 +02:00
Matthias Clasen
7d5fe40f2e GtkMenuButton: Submit to action
As an actionable (inherited from GtkButton), a GtkMenuButton
should not set its own sensitivity when it has an action-name
set, but just follow the enabled state of the associated
action.

https://bugzilla.gnome.org/show_bug.cgi?id=738083
2015-05-20 16:28:53 +02:00
Marek Kasik
24a399252e 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:31:56 +02:00
Руслан Ижбулатов
69aeaacedd Use GDK_KEY_KP_Decimal instead of GDK_KP_Decimal
Fixes the FTBFS introduced in 578043f97e
2015-05-04 17:03:22 +00:00
Cédric Valmary
46411546e8 Updated Occitan translation 2015-05-02 15:29:15 +00:00
Matthias Clasen
ca3f730960 win32: Support the decimal point on the keypad
Based on a patch by John Emmas.
2015-05-01 07:34:30 -04:00
Sveinn í Felli
f8ff25e554 Updated Icelandic translation 2015-04-28 15:10:23 +00:00
Sveinn í Felli
e8f1f9906b Updated Icelandic translation 2015-04-28 15:07:46 +00:00
Matthias Clasen
9718f4b53e 3.14.13 3.14.13 2015-04-27 13:31:52 -04:00
Christian Hergert
6500211ea4 gdk: don't segfault on beep with offscreen window
https://bugzilla.gnome.org/show_bug.cgi?id=748341
2015-04-27 13:27:00 -04:00
Matthias Clasen
e2a61b595d GtkDialog: Fix up docs
The ui fragment in the example was causing a critical
warning, which is not nice. Fix it to work properly.
2015-04-27 13:25:29 -04:00
Michael Catanzaro
3adf2be50f GtkMessageDialog: Minor documentation update
Icons went away in 3.12

https://bugzilla.gnome.org/show_bug.cgi?id=748061
2015-04-27 13:23:14 -04:00
Federico Mena Quintero
226728e44d gdkcolor.h: Use GDK_DEPRECATED_IN_3_14_FOR() throughout
So that lazy people like me can see in the header file which new functions to use.
2015-04-27 13:22:52 -04:00
Sveinn í Felli
2b5ed04520 Updated Icelandic translation 2015-04-23 11:23:41 +00:00
Christian Kirbach
7b82be4dc5 Updated German translation 2015-04-18 14:52:36 +00:00
Lars Uebernickel
872123366d GtkRange: fix horizontal scrolling
https://bugzilla.gnome.org/show_bug.cgi?id=737175
2015-04-15 15:28:07 +02:00
Matthias Clasen
cbe4f410c8 Fix window button updates in split headers
We were only updating window buttons when the headerbar was
a direct child of the window. That is not the case in more
complicated situations, such as the split headers in gedit
or polari. To fix such cases, make the headerbar itself listen
for state changes on its toplevel.

https://bugzilla.gnome.org/show_bug.cgi?id=747805
2015-04-14 17:37:12 -04:00
Carlos Garnacho
5256834657 gesturesingle: Ignore motion/updates from unhandled sequences
This used to do the right thing, practically ignoring those event
if they went all through the event handler, unless this motion event
triggered the cancellation of this gesture from the event handler
of another controllers.

In this case, the controller would be reset, but the motion event
would still go through its handler, setting again
current_button/sequence as the motion event has buttons in its
modifiers. This leaves GtkGestureSingle with inconsistent data
that may interfere with future runs.

https://bugzilla.gnome.org/show_bug.cgi?id=747469
2015-04-13 17:30:17 +02:00
Carlos Garnacho
280dca8c18 plug: Remove size_allocate handler
Since windows can be intermediate containers this is somewhat redundant,
plus gtk_window_size_allocate() will do additional things like allocating
the popovers, which was mistakenly skipped by local plugs not chaining up.

https://bugzilla.gnome.org/show_bug.cgi?id=747553
2015-04-13 12:41:42 +02:00
Matthias Clasen
d59f435057 GtkApplication: Prevent more crashes around shutdown
gtk_application_shutdown clears the impl member, so all
callbacks, signal handlers, etc that might still be triggered
between a shutdown call and the return from the mainloop
better be prepared to deal with impl being NULL.
2015-04-10 08:05:51 -04:00
Matthias Clasen
b015f8a1b8 3.14.12 3.14.12 2015-04-09 06:49:10 -04:00
Matthias Clasen
e0fe93062e popover: Remove signal handlers in dispose
If we don't, they may get triggered at an inopportune
time later, causing us to crash.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1203499

https://bugzilla.gnome.org/show_bug.cgi?id=747539
2015-04-09 06:40:32 -04:00
Matthias Clasen
5af10c9c70 Make gtk-update-icon-cache not fall over leftover temp files
This is a followup to 0fd185fa6d. There is no
good reason to only try again if --force is passed. Do it
always.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1194957
2015-04-08 20:35:49 -04:00
Matthias Clasen
1d93df8a5e tree view: Avoid a crash with rubberbanding
When a treeview is destroyed while rubberbanding is going
on, we crash because the rb tree is nuked before we want
to access it to stop the rubberbanding. To avoid this crash
end the rubberbanding early in destroy().

See
https://bugzilla.redhat.com/show_bug.cgi?id=1173904
2015-04-08 18:57:40 -04:00
Matthias Clasen
792ba583f3 GtkApplication: avoid a crash
It can apparently happen that we get focus in events
on windows after gtk_application_shutdown() has been
called. Avoid an unnecessary crash in this case.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1176339
2015-04-08 15:46:34 -04:00
Matthias Clasen
2e733c2587 Revert "image: Optimize non-resize changes"
This reverts commit 78475606c9.

We're still seeing regressions from this, see
http://bugzilla.redhat.com/show_bug.cgi?id=1208183
2015-04-08 14:20:08 -04:00
Georges Basile Stavracas Neto
3df5b52148 places sidebar: compare bookmarks by index
GtkPlacesSidebar applies a sorting function on
the tree model that does not consider the case
of bookmarks, which are sorted by their indexes.

By adding the bookmarks corner case and comparing
then by their indexes, GtkPlacesSidebar can sort
the bookmarks properly in the order they're saved.

https://bugzilla.gnome.org/show_bug.cgi?id=744589
2015-04-05 10:21:34 -04:00
Carlos Garnacho
dd62e0410e gtkdnd: Restore widget opacity after fading out
Otherwise the widget is left fully transparent, and will start as such if
the widget is reused.
2015-03-30 12:47:02 +02:00
Carlos Garnacho
a65a371822 gtkdnd: Set the icon helper from the drag site onto the context
If the icon happened to come from the drag site icon helper (ie. set through
gtk_drag_source_set_icon*), it would be referenced on the GtkDragInfo,
but not hooked into its context. This results on non visible drag windows,
until set_icon_helper() happened to be called on some path.
2015-03-30 12:46:53 +02:00
Matthias Clasen
ce4819a137 3.14.11 3.14.11 2015-03-29 17:37:23 -04:00
Benjamin Otte
307d54ba7b roundedbox: Fix a copy/paste error
This caused shadows to not be drawn in certain situations when overlayed
via a popover animation.

https://bugzilla.gnome.org/show_bug.cgi?id=746862
2015-03-29 17:30:00 -04:00