Queue a redraw when the grab changes. (#396470, Benjamin Berg)

2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
        grab changes.  (#396470, Benjamin Berg)



svn path=/branches/gtk-2-10/; revision=17160
This commit is contained in:
Matthias Clasen
2007-01-16 14:19:04 +00:00
committed by Matthias Clasen
parent 20922e75a9
commit f44e1fa81c
2 changed files with 13 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2007-01-16 Matthias Clasen <mclasen@redhat.com>
* Merge from trunk:
* gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
grab changes. (#396470, Benjamin Berg)
2007-01-15 Emmanuele Bassi <ebassi@gnome.org>
Backport from trunk.

View File

@@ -1418,12 +1418,16 @@ range_grab_add (GtkRange *range,
static void
range_grab_remove (GtkRange *range)
{
MouseLocation location;
gtk_grab_remove (GTK_WIDGET (range));
location = range->layout->grab_location;
range->layout->grab_location = MOUSE_OUTSIDE;
range->layout->grab_button = 0;
if (gtk_range_update_mouse_location (range))
if (gtk_range_update_mouse_location (range) ||
location != MOUSE_OUTSIDE)
gtk_widget_queue_draw (GTK_WIDGET (range));
}