diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-09-26 19:18:57 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-09-26 19:18:57 -0400 |
commit | b333d5ea4e029d150ac1db169e53e87d2dda8dbb (patch) | |
tree | 061d6f7aa27cbde857c986eab46c5fbbfc17599e | |
parent | 92e52fd18883190ba4b6bf712471172658629f8f (diff) | |
download | gtk+-b333d5ea4e029d150ac1db169e53e87d2dda8dbb.tar.gz |
GtkRange: claim sequence when popping up menu
This was clearly an oversight - the function claims the sequence
at the end, and for the popup menu case, we have an early exit
that misses this.
-rw-r--r-- | gtk/gtkrange.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 309f43c5c8..5d0c84df60 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -2497,8 +2497,8 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture, { gboolean handled; + gtk_gesture_set_state (priv->multipress_gesture, GTK_EVENT_SEQUENCE_CLAIMED); g_signal_emit_by_name (widget, "popup-menu", &handled); - return; } @@ -2706,8 +2706,7 @@ update_slider_position (GtkRange *range, } } - g_signal_emit (range, signals[CHANGE_VALUE], 0, GTK_SCROLL_JUMP, new_value, - &handled); + g_signal_emit (range, signals[CHANGE_VALUE], 0, GTK_SCROLL_JUMP, new_value, &handled); } static void |