diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-08-05 22:56:05 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-08-06 00:01:18 +0200 |
commit | 36711b66910eab1d845cc8d1aad7d1aeee18e0f4 (patch) | |
tree | 9f45f5f14a496fcf75e40a8fd7aeaa79ea28bf14 /gtk/gtkbutton.c | |
parent | dc8adcda0e06aa0c3d650ea8df81667113ecb08e (diff) | |
download | gtk+-36711b66910eab1d845cc8d1aad7d1aeee18e0f4.tar.gz |
gtkbutton: Don't claim gesture till emission
That means waiting till button release.
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 843c1f49a0..eac1499b0d 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -327,8 +327,6 @@ click_pressed_cb (GtkGestureClick *gesture, if (!priv->activate_timeout) priv->button_down = TRUE; - - gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED); } static gboolean @@ -364,6 +362,7 @@ click_released_cb (GtkGestureClick *gesture, GtkButtonPrivate *priv = gtk_button_get_instance_private (button); GdkEventSequence *sequence; + gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED); gtk_button_do_release (button, gtk_widget_is_sensitive (GTK_WIDGET (button)) && (priv->in_button || |