diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-03-20 15:21:12 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2018-03-20 15:21:12 +0100 |
commit | 63e060a21de336ec49b1de02c74359842d9034c5 (patch) | |
tree | 2efb29d70bff6cb5d0a9ca6825ea8aac50566242 /testsuite | |
parent | 3dce0dcca705c4ab6d8c4f5067db93947184b6af (diff) | |
download | gtk+-63e060a21de336ec49b1de02c74359842d9034c5.tar.gz |
GtkWidget: Start renaming widget->window
This is an automated change doing these command:
git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface
git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface
git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface
git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface
git sed -f g gtk_widget_set_window gtk_widget_set_surface
git sed -f g gtk_widget_get_window gtk_widget_get_surface
git sed -f g gtk_widget_register_window gtk_widget_register_surface
git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface
git checkout NEWS*
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gtk/gestures.c | 12 | ||||
-rw-r--r-- | testsuite/reftests/reftest-snapshot.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/testsuite/gtk/gestures.c b/testsuite/gtk/gestures.c index 63ed1cd26a..dd38ffa136 100644 --- a/testsuite/gtk/gestures.c +++ b/testsuite/gtk/gestures.c @@ -35,7 +35,7 @@ point_press (PointState *point, if (point == &mouse_state) { ev = gdk_event_new (GDK_BUTTON_PRESS); - ev->any.surface = g_object_ref (gtk_widget_get_window (widget)); + ev->any.surface = g_object_ref (gtk_widget_get_surface (widget)); ev->button.time = GDK_CURRENT_TIME; ev->button.x = point->x; ev->button.y = point->y; @@ -47,7 +47,7 @@ point_press (PointState *point, else { ev = gdk_event_new (GDK_TOUCH_BEGIN); - ev->any.surface = g_object_ref (gtk_widget_get_window (widget)); + ev->any.surface = g_object_ref (gtk_widget_get_surface (widget)); ev->touch.time = GDK_CURRENT_TIME; ev->touch.x = point->x; ev->touch.y = point->y; @@ -87,7 +87,7 @@ point_update (PointState *point, if (point == &mouse_state) { ev = gdk_event_new (GDK_MOTION_NOTIFY); - ev->any.surface = g_object_ref (gtk_widget_get_window (widget)); + ev->any.surface = g_object_ref (gtk_widget_get_surface (widget)); ev->button.time = GDK_CURRENT_TIME; ev->motion.x = x; ev->motion.y = y; @@ -99,7 +99,7 @@ point_update (PointState *point, return; ev = gdk_event_new (GDK_TOUCH_UPDATE); - ev->any.surface = g_object_ref (gtk_widget_get_window (widget)); + ev->any.surface = g_object_ref (gtk_widget_get_surface (widget)); ev->touch.time = GDK_CURRENT_TIME; ev->touch.x = x; ev->touch.y = y; @@ -142,7 +142,7 @@ point_release (PointState *point, return; ev = gdk_event_new (GDK_BUTTON_RELEASE); - ev->any.surface = g_object_ref (gtk_widget_get_window (point->widget)); + ev->any.surface = g_object_ref (gtk_widget_get_surface (point->widget)); ev->button.time = GDK_CURRENT_TIME; ev->button.x = point->x; ev->button.y = point->y; @@ -153,7 +153,7 @@ point_release (PointState *point, else { ev = gdk_event_new (GDK_TOUCH_END); - ev->any.surface = g_object_ref (gtk_widget_get_window (point->widget)); + ev->any.surface = g_object_ref (gtk_widget_get_surface (point->widget)); ev->touch.time = GDK_CURRENT_TIME; ev->touch.x = point->x; ev->touch.y = point->y; diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index 2054a3fdfd..d875fec1d4 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -159,7 +159,7 @@ snapshot_widget (GtkWidget *widget, SnapshotMode mode) gdk_event_handler_set (check_for_draw, NULL, NULL); g_main_loop_run (loop); - surface = gdk_surface_create_similar_surface (gtk_widget_get_window (widget), + surface = gdk_surface_create_similar_surface (gtk_widget_get_surface (widget), CAIRO_CONTENT_COLOR, gtk_widget_get_allocated_width (widget), gtk_widget_get_allocated_height (widget)); @@ -169,7 +169,7 @@ snapshot_widget (GtkWidget *widget, SnapshotMode mode) switch (mode) { case SNAPSHOT_WINDOW: - snapshot_window_native (gtk_widget_get_window (widget), cr); + snapshot_window_native (gtk_widget_get_surface (widget), cr); break; case SNAPSHOT_DRAW: gtk_widget_draw (widget, cr); |