[gtk+] button: Claim the sequence on multipress::pressed



commit 2012b67c5bfe8291dd77f6726b4f2c26f694b4ba
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue May 27 17:35:36 2014 +0200

    button: Claim the sequence on multipress::pressed
    
    In order to avoid the event from bubbling, as it used to (not) do.

 gtk/gtkbutton.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 17a1f9d..32483b4 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]