summaryrefslogtreecommitdiff
path: root/tests/testwindowdrag.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-17 19:15:46 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-05-17 19:15:46 +0000
commitc0faf0c6b60508be67770f23bbbd79acae0bfb89 (patch)
treef1330ec151ca222d68852c88d5acef5d51df73d8 /tests/testwindowdrag.c
parent34d7e25a1f4388ea461ffe0693cf31c9a13ce822 (diff)
parentb63690aa6bae23397564a4fc409aa71d00d53229 (diff)
downloadgtk+-c0faf0c6b60508be67770f23bbbd79acae0bfb89.tar.gz
Merge branch 'toplevel-move-resize' into 'master'
Toplevel move resize See merge request GNOME/gtk!1923
Diffstat (limited to 'tests/testwindowdrag.c')
-rw-r--r--tests/testwindowdrag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testwindowdrag.c b/tests/testwindowdrag.c
index 2f8d1539ac..d53a0c17c5 100644
--- a/tests/testwindowdrag.c
+++ b/tests/testwindowdrag.c
@@ -28,7 +28,7 @@ start_resize (GtkGestureClick *gesture,
gtk_widget_translate_coordinates (widget, GTK_WIDGET (gtk_widget_get_root (widget)),
xx, yy, &xx, &yy);
- gdk_surface_begin_resize_drag (surface, edge, gdk_event_get_device (event), button, xx, yy, timestamp);
+ gdk_toplevel_begin_resize (GDK_TOPLEVEL (surface), edge, gdk_event_get_device (event), button, xx, yy, timestamp);
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture));
}
@@ -76,7 +76,7 @@ start_move (GtkGestureClick *gesture,
gtk_widget_translate_coordinates (widget, GTK_WIDGET (gtk_widget_get_root (widget)),
xx, yy, &xx, &yy);
- gdk_surface_begin_move_drag (surface, gdk_event_get_device (event), button, xx, yy, timestamp);
+ gdk_toplevel_begin_move (GDK_TOPLEVEL (surface), gdk_event_get_device (event), button, xx, yy, timestamp);
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture));
}