diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2020-11-12 16:25:55 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2020-11-12 16:25:55 +0500 |
commit | 253f26c57da3cbcb1286ad5a7f99b3a2a8f542f3 (patch) | |
tree | cbfe0aeda4b59a14a2a7024e84ff96ce1b123dc7 | |
parent | 5f2a8aadb9ac450d12e6882873e085e8a2de772e (diff) | |
download | gtk+-wip/exalm/button3.tar.gz |
button: Don't make the gesture exclusivewip/exalm/button3
With the last commit, pressing the same button with multiple fingers
doesn't cause extra emissions, so we can remove exclusive and allow
pressing multiple buttons at once on touch.
-rw-r--r-- | gtk/gtkbutton.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 26b7ffba38..ea75baa57d 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -736,7 +736,6 @@ gtk_button_init (GtkButton *button) priv->gesture = gtk_gesture_multi_press_new (GTK_WIDGET (button)); gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->gesture), FALSE); - gtk_gesture_single_set_exclusive (GTK_GESTURE_SINGLE (priv->gesture), TRUE); gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (priv->gesture), GDK_BUTTON_PRIMARY); g_signal_connect (priv->gesture, "pressed", G_CALLBACK (multipress_pressed_cb), button); g_signal_connect (priv->gesture, "released", G_CALLBACK (multipress_released_cb), button); |