diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-01-16 14:17:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-01-16 14:17:12 +0000 |
commit | 2955a65dd7e839ebdaadf98829913971ab6f131f (patch) | |
tree | 69c1b7395ae55120ff8b3a9bc41d2d4754ac242a /gtk/gtkrange.c | |
parent | cd87d06cf7232ad5e6d2769a69d699a89fe25c77 (diff) | |
download | gtk+-2955a65dd7e839ebdaadf98829913971ab6f131f.tar.gz |
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
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r-- | gtk/gtkrange.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index d39f537983..e9667817a9 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -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)); } |