diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/gestures.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/gtk/gestures.c b/testsuite/gtk/gestures.c index afe7cd3679..3f0f806636 100644 --- a/testsuite/gtk/gestures.c +++ b/testsuite/gtk/gestures.c @@ -331,10 +331,11 @@ add_gesture (GtkWidget *w, const gchar *name, GtkPropagationPhase phase, GString data->str = str; data->state = state; - g = gtk_gesture_multi_press_new (w); + g = gtk_gesture_multi_press_new (); gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (g), FALSE); gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (g), 1); gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (g), phase); + gtk_widget_add_controller (w, GTK_EVENT_CONTROLLER (g)); g_object_set_data (G_OBJECT (g), "name", (gpointer)name); |