Commit Graph

40538 Commits

Author SHA1 Message Date
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
Matthias Clasen
4b8d66ea21 radio button: Fix directional navigation
GtkRadioButton had a deficient copy of the focus sort code
in GtkContainer, causing focus to jump over the next button
in the list. Just use _gtk_container_focus_sort() here,
which fixes the bug _and_ saves 80 lines of code.

https://bugzilla.gnome.org/show_bug.cgi?id=746817
2015-03-29 17:29:47 -04:00
Matthias Clasen
33833cdd88 Fix separator in testsplitheaders 2015-03-29 17:29:38 -04:00
Will Thompson
fcc4744181 bbox: correct documentation typo 2015-03-29 17:29:19 -04:00
Joanmarie Diggs
74426d896d Fix an AtkStateType emitted for GtkBooleanCellAccessible
An apparent copy-and-paste error is resulting in ATs being notified of
changes in ATK_STATE_CHECKED when the cell's "sensitive" state changes.

https://bugzilla.gnome.org/show_bug.cgi?id=746784
2015-03-29 17:29:08 -04:00
Benjamin Otte
c8c007a49e filechooser: Use same priority everywhere
I managed to stall recent files today while trying to save a GTK
testcase in glade that contained enough spinning spinners that the CPU
was saturated just redrawing things.

I had to navigate the filesystem!
2015-03-29 17:29:02 -04:00
Marcus Karlsson
06a952c55d GtkRange: Check "inverted" property when drawing
The direction in which the slider moves can be inverted by setting the
inverted property. But the draw method does not check this, instead it
checks if the direction of the widget is set to be right to left.

Call the should_invert function in order to determine if the direction
of the range should be inverted. It too checks the widget's direction,
but also checks the "inverted" property, and allows the range to be
drawn inverted even if it is vertically oriented.

https://bugzilla.gnome.org/show_bug.cgi?id=746712
2015-03-29 17:28:56 -04:00
Marcus Karlsson
5a61fcd1b3 GtkRange: Fix drawing of fill-level
Compute the proportion of the range that should be filled to match the
fill level, and use it to compute the starting point and length of the
area between the slider and the fill level.

https://bugzilla.gnome.org/show_bug.cgi?id=734741
2015-03-29 17:28:48 -04:00
Matthias Clasen
f34ecab28f GtkRange: Fix scroll wheel direction for horizontal ranges
The expected behavior here is that scrolling up goes towards
larger values, ie to the right. This matches e.g. volume
sliders in gnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=737175
2015-03-29 17:22:36 -04:00
Руслан Ижбулатов
b76e9e35e6 W32: Only override window miximized position for CSDed windows
This fixes an issue with non-CSDed windows being improperly positioned
when maximized, which was introduced by the previous commit.

https://bugzilla.gnome.org/show_bug.cgi?id=746821
2015-03-26 17:08:04 +00:00
Руслан Ижбулатов
2c07c71efe W32: Correctly set maximized window position
Use screen workarea to *also* set the position of a maximized window,
not just its size. Without this the window position defaults to 0:0
(the topleft corner), which is wrong when taskbar is position along the
top or left edge of the screen.

https://bugzilla.gnome.org/show_bug.cgi?id=746821
2015-03-26 15:56:28 +00:00
Marek Černocký
fdb1ed64f7 Updated Czech translation 2015-03-23 16:10:50 +01:00
Matthias Clasen
055d799f6a 3.14.10 3.14.10 2015-03-23 06:49:21 -04:00
Benjamin Otte
b7f4c25ba4 docs: Fix some copy/paste errors 2015-03-23 06:49:21 -04:00
Matthias Clasen
ef1fa3d4d3 Gestures: Properly handle weak references
Every call to g_object_add_weak_pointer must be matched with
a g_object_remove_weak_pointer call, or we will get invalid
writes inside GObject.

https://bugzilla.gnome.org/show_bug.cgi?id=746013
2015-03-23 06:10:04 -04:00
Matthias Clasen
9813971304 Fix 7c4bf742e8
The objects-finalize test constructs gestures with NULL as
a widget. The recent addition of weak references was not
ready for that.
2015-03-23 06:10:04 -04:00
Matthias Clasen
2b16ef289d Stop using GDK_POINTER_MOTION_HINT_MASK in widgets
It is deprecated and no longer needed, and,as observed in
https://bugzilla.gnome.org/show_bug.cgi?id=746253 it
interferes with turning off event compression.
2015-03-22 23:30:51 -04:00
Matthias Clasen
636dd80421 Don't return G_TYPE_INVALID as a pointer
Use NULL for g_return_val_if_fail checks if the function returns
a pointer. Pointed out by clang.
2015-03-22 23:30:51 -04:00
Matthias Clasen
cb1d02ecd7 text view: Avoid clang compiler warnings
Again, our habit to use -1 as an unset value for enum types.
2015-03-22 23:30:51 -04:00
Matthias Clasen
272ddd5687 Remove a redundant const
const gchar const is still just const gchar, unless there's
indirections in between.
2015-03-22 23:30:51 -04:00
Matthias Clasen
dea45574c4 Remove a pointless comparison
Comparing an unsigned value against < 0 is not going to succeed.
Pointed out by clang.
2015-03-22 23:30:51 -04:00
Matthias Clasen
48f7faf0da More of the same
A similar case in GtkIconHelper. Here we were confusing ourselves,
and compared a icon_size against -1, although the variable is
never set to -1.
2015-03-22 23:30:51 -04:00
Matthias Clasen
ca759c3eb6 Avoid some clang compiler warnings
Avoid some compiler warnings from clang in deprecated code.
Most of these are around our habit of using -1 as an 'unset'
value for enumerations.
2015-03-22 23:30:51 -04:00
Matthias Clasen
8f5bdfe3e2 Make the blur code compile with clang
clang complains that the expression involving sqrt() is not
constant, and thus refuses to accept it as a case label. So,
use precomputed values instead.

https://bugzilla.gnome.org/show_bug.cgi?id=746468
2015-03-22 23:30:51 -04:00
Matthias Clasen
4e9ff47868 tooltip: Minor cleanup
Preserve the symmetry in gtk_tooltip_set_last_window.
2015-03-22 23:30:50 -04:00
Matthias Clasen
482b0295e0 mount operation: Minor formatting cleanup
The pattern for g_object_add_weak_pointer calls is to
have the same expression in both arguments.
2015-03-22 23:30:50 -04:00
Matthias Clasen
74b6474597 menu button: Minor cleanup
Preserve the symmetry in set_align_widget_pointer.
2015-03-22 23:30:50 -04:00
Matthias Clasen
a8d8cfdc39 Clean up some unfortunate formatting
"if (...) do" just looks wrong.
2015-03-22 23:30:50 -04:00