summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-09-26 19:18:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-09-26 19:18:57 -0400
commitb333d5ea4e029d150ac1db169e53e87d2dda8dbb (patch)
tree061d6f7aa27cbde857c986eab46c5fbbfc17599e
parent92e52fd18883190ba4b6bf712471172658629f8f (diff)
downloadgtk+-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.c5
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