diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-29 17:10:46 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-29 17:10:46 +0000 |
commit | 7f65e5f96b545fe071b37256eb61770a7ee2f085 (patch) | |
tree | 1efed96fd471162df7d838b781ca79f018aabbe7 /examples | |
parent | 5675d585f40adc407f7f0f56289654dc785b4610 (diff) | |
download | gtk+-7f65e5f96b545fe071b37256eb61770a7ee2f085.tar.gz |
Rename GtkGestureMultiPress to GtkGestureClick
The name just made it hard for people to find the
right gesture to use.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/drawing.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/drawing.c b/examples/drawing.c index da3eeabe73..f5315aebb7 100644 --- a/examples/drawing.c +++ b/examples/drawing.c @@ -110,11 +110,11 @@ drag_end (GtkGestureDrag *gesture, } static void -pressed (GtkGestureMultiPress *gesture, - int n_press, - double x, - double y, - GtkWidget *area) +pressed (GtkGestureClick *gesture, + int n_press, + double x, + double y, + GtkWidget *area) { clear_surface (); gtk_widget_queue_draw (area); @@ -164,7 +164,7 @@ activate (GtkApplication *app, g_signal_connect (drag, "drag-update", G_CALLBACK (drag_update), drawing_area); g_signal_connect (drag, "drag-end", G_CALLBACK (drag_end), drawing_area); - press = gtk_gesture_multi_press_new (); + press = gtk_gesture_click_new (); gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (press), GDK_BUTTON_SECONDARY); gtk_widget_add_controller (drawing_area, GTK_EVENT_CONTROLLER (press)); |