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=/trunk/; revision=17159
This commit is contained in:
Matthias Clasen 2007-01-16 14:17:12 +00:00 committed by Matthias Clasen
parent cd87d06cf7
commit 2955a65dd7
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-01-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
grab changes. (#396470, Benjamin Berg)
2007-01-15 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label

View File

@ -1705,12 +1705,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));
}