diff options
author | Arjan Molenaar <gaphor@gmail.com> | 2023-02-02 11:48:51 +0100 |
---|---|---|
committer | Arjan Molenaar <gaphor@gmail.com> | 2023-02-02 21:29:45 +0100 |
commit | aef4c50155e5c84da9826ffb316cd8fa18a25d70 (patch) | |
tree | b8a4bad128dae59af7c2c7e5392a34fd65347dad /demos/gtk-demo | |
parent | cab5f2bd8d234347aec76177411e1b99adce44b7 (diff) | |
download | gtk+-aef4c50155e5c84da9826ffb316cd8fa18a25d70.tar.gz |
Allow all mouse buttons to be used for the drawingarea demo
So we can test if the drag gesture works with all mouse buttons.
Diffstat (limited to 'demos/gtk-demo')
-rw-r--r-- | demos/gtk-demo/drawingarea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/gtk-demo/drawingarea.c b/demos/gtk-demo/drawingarea.c index d58c712347..da67ac1f33 100644 --- a/demos/gtk-demo/drawingarea.c +++ b/demos/gtk-demo/drawingarea.c @@ -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); |