mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
gtkbutton: Don't claim gesture till emission
That means waiting till button release.
This commit is contained in:
parent
dc8adcda0e
commit
36711b6691
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user