[gtk+/wip/baedert/drawing: 279/371] spinbutton: Fix gesture state
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+/wip/baedert/drawing: 279/371] spinbutton: Fix gesture state
 
- Date: Sun, 16 Jul 2017 15:45:17 +0000 (UTC)
 
commit 1b70caac833c78d0892cdecca93c4bfeaf3702ca
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 25 18:27:10 2017 +0200
    spinbutton: Fix gesture state
    
    We claimed the gesture previously to keep it from propagating to the
    underlying entry, but now that the entry is in a box with the two
    buttons, we can do this properly and restore the previous long-press
    behavior.
 gtk/gtkspinbutton.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 26dac7e..9034eca 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -788,8 +788,6 @@ button_pressed_cb (GtkGestureMultiPress *gesture,
 
   gtk_widget_grab_focus (GTK_WIDGET (spin_button));
 
-  gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
-
   if (gtk_editable_get_editable (GTK_EDITABLE (priv->entry)))
     {
       int button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture));
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]