From 7f65e5f96b545fe071b37256eb61770a7ee2f085 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 29 May 2019 17:10:46 +0000 Subject: Rename GtkGestureMultiPress to GtkGestureClick The name just made it hard for people to find the right gesture to use. --- demos/gtk-demo/hypertext.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/gtk-demo/hypertext.c') diff --git a/demos/gtk-demo/hypertext.c b/demos/gtk-demo/hypertext.c index a34a85873b..b053ed581f 100644 --- a/demos/gtk-demo/hypertext.c +++ b/demos/gtk-demo/hypertext.c @@ -136,11 +136,11 @@ static void set_cursor_if_appropriate (GtkTextView *text_view, gint y); static void -released_cb (GtkGestureMultiPress *gesture, - guint n_press, - gdouble x, - gdouble y, - GtkWidget *text_view) +released_cb (GtkGestureClick *gesture, + guint n_press, + gdouble x, + gdouble y, + GtkWidget *text_view) { GtkTextIter start, end, iter; GtkTextBuffer *buffer; @@ -247,7 +247,7 @@ do_hypertext (GtkWidget *do_widget) g_signal_connect (controller, "key-pressed", G_CALLBACK (key_pressed), view); gtk_widget_add_controller (view, controller); - controller = GTK_EVENT_CONTROLLER (gtk_gesture_multi_press_new ()); + controller = GTK_EVENT_CONTROLLER (gtk_gesture_click_new ()); g_signal_connect (controller, "released", G_CALLBACK (released_cb), view); gtk_widget_add_controller (view, controller); -- cgit v1.2.1