diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-05-22 15:36:32 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-05-23 19:54:33 +0200 |
commit | d59c90966398eca6bbcfcd061bc8ef87e6f81cba (patch) | |
tree | a122aa31260728fc39a313d8e144acbbed88bb19 /gtk/gtkspinbutton.c | |
parent | 01d74f86a05be8697dd3f0474110b1524722a1ec (diff) | |
download | gtk+-d59c90966398eca6bbcfcd061bc8ef87e6f81cba.tar.gz |
spinbutton: Use GTK_PHASE_CAPTURE for touch swipes
The gesture must be able to catch first events for it to be seen
as recognized in event handlers.
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r-- | gtk/gtkspinbutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 5bbd1ca6b5..590e4a6220 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -715,14 +715,14 @@ gtk_spin_button_init (GtkSpinButton *spin_button) gtk_widget_add_events (GTK_WIDGET (spin_button), GDK_SCROLL_MASK); priv->long_press_gesture = gtk_gesture_long_press_new (GTK_WIDGET (spin_button)); - gtk_gesture_attach (priv->long_press_gesture, GTK_PHASE_BUBBLE); + gtk_gesture_attach (priv->long_press_gesture, GTK_PHASE_CAPTURE); g_signal_connect (priv->long_press_gesture, "pressed", G_CALLBACK (long_press_action), spin_button); g_signal_connect (priv->long_press_gesture, "cancelled", G_CALLBACK (long_press_cancel_action), spin_button); priv->swipe_gesture = gtk_gesture_swipe_new (GTK_WIDGET (spin_button)); - gtk_gesture_attach (priv->swipe_gesture, GTK_PHASE_BUBBLE); + gtk_gesture_attach (priv->swipe_gesture, GTK_PHASE_CAPTURE); g_signal_connect (priv->swipe_gesture, "update", G_CALLBACK (swipe_gesture_update), spin_button); } |