diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-10 18:05:57 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-04-26 17:59:42 +0200 |
commit | 1e6eb1f8b94ad10f30678285860dc24877bbbac3 (patch) | |
tree | eef4b5f579a657072967e7f7dd047494af5add1d /tests | |
parent | bf82149271b4f6bf6379b22eeea191dffe6823dd (diff) | |
download | gtk+-1e6eb1f8b94ad10f30678285860dc24877bbbac3.tar.gz |
draggesture: Port to new API model
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testinput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testinput.c b/tests/testinput.c index 9694e84bdf..1427f26e03 100644 --- a/tests/testinput.c +++ b/tests/testinput.c @@ -282,13 +282,14 @@ main (int argc, char *argv[]) gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (drawing_area), draw, NULL, NULL); g_signal_connect (drawing_area, "size-allocate", G_CALLBACK (size_allocate), NULL); - gesture = gtk_gesture_drag_new (drawing_area); + gesture = gtk_gesture_drag_new (); g_object_set_data_full (G_OBJECT (drawing_area), "gesture", gesture, g_object_unref); g_signal_connect (gesture, "drag-begin", G_CALLBACK (drag_begin), drawing_area); g_signal_connect (gesture, "drag-update", G_CALLBACK (drag_update), drawing_area); + gtk_widget_add_controller (drawing_area, GTK_EVENT_CONTROLLER (gesture)); g_signal_connect (drawing_area, "key_press_event", G_CALLBACK (key_press_event), NULL); |