Allow all mouse buttons to be used for the drawingarea demo

So we can test if the drag gesture works with all mouse buttons.
This commit is contained in:
Arjan Molenaar 2023-02-02 11:48:51 +01:00
parent cab5f2bd8d
commit aef4c50155
No known key found for this signature in database
GPG Key ID: BF977B918996CB13

View File

@ -362,7 +362,7 @@ do_drawingarea (GtkWidget *do_widget)
G_CALLBACK (scribble_resize), NULL);
drag = gtk_gesture_drag_new ();
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (drag), GDK_BUTTON_PRIMARY);
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (drag), 0);
gtk_widget_add_controller (da, GTK_EVENT_CONTROLLER (drag));
g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_begin), da);