summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-11-12 15:27:16 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-11-12 15:27:16 +0500
commit49613dca8efcae2bffdfdebd3e76735b49fa6de4 (patch)
tree0534ecc8aef886efb5039368f9c5bdc190074c1e
parenta651a0ce6977e9235fcc510b60ea6677c443ea48 (diff)
downloadgtk+-wip/exalm/button.tar.gz
button: Don't make the gesture exclusivewip/exalm/button
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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 059853106a..da3186f366 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -405,7 +405,6 @@ gtk_button_init (GtkButton *button)
priv->gesture = gtk_gesture_click_new ();
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 (click_pressed_cb), button);
g_signal_connect (priv->gesture, "released", G_CALLBACK (click_released_cb), button);