summaryrefslogtreecommitdiff
path: root/gtk/gtkbutton.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-05-27 17:35:36 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-05-27 17:47:12 +0200
commit2012b67c5bfe8291dd77f6726b4f2c26f694b4ba (patch)
tree7cef48c8567b76220c1d51dcd8cc2ef6b9100ade /gtk/gtkbutton.c
parente0fd9017220f4f490063a37c30b667a6921f74b7 (diff)
downloadgtk+-2012b67c5bfe8291dd77f6726b4f2c26f694b4ba.tar.gz
button: Claim the sequence on multipress::pressed
In order to avoid the event from bubbling, as it used to (not) do.
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r--gtk/gtkbutton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 17a1f9d987..32483b4249 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -598,6 +598,7 @@ multipress_pressed_cb (GtkGestureMultiPress *gesture,
gtk_widget_grab_focus (widget);
g_signal_emit (button, button_signals[PRESSED], 0);
+ gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
}
static void