mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
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:
parent
cab5f2bd8d
commit
aef4c50155
@ -362,7 +362,7 @@ do_drawingarea (GtkWidget *do_widget)
|
|||||||
G_CALLBACK (scribble_resize), NULL);
|
G_CALLBACK (scribble_resize), NULL);
|
||||||
|
|
||||||
drag = gtk_gesture_drag_new ();
|
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));
|
gtk_widget_add_controller (da, GTK_EVENT_CONTROLLER (drag));
|
||||||
|
|
||||||
g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_begin), da);
|
g_signal_connect (drag, "drag-begin", G_CALLBACK (drag_begin), da);
|
||||||
|
Loading…
Reference in New Issue
Block a user