[gtk/wip/carlosg/stop-spinbutton-stop: 2/3] gtkbutton: Don't claim gesture till emission
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/stop-spinbutton-stop: 2/3] gtkbutton: Don't claim gesture till emission
- Date: Wed, 5 Aug 2020 22:03:07 +0000 (UTC)
commit 36711b66910eab1d845cc8d1aad7d1aeee18e0f4
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 5 22:56:05 2020 +0200
gtkbutton: Don't claim gesture till emission
That means waiting till button release.
gtk/gtkbutton.c | 3 +--
1 file changed, 1 insertion(+), 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 ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]