diff options
Diffstat (limited to 'tests/showrendernode.c')
-rw-r--r-- | tests/showrendernode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/showrendernode.c b/tests/showrendernode.c index d4de840c50..d4b854c7bc 100644 --- a/tests/showrendernode.c +++ b/tests/showrendernode.c @@ -165,7 +165,7 @@ main (int argc, char **argv) if (write_to_filename != NULL) { - GdkWindow *window = gdk_window_new_toplevel (gdk_display_get_default(), 10 , 10); + GdkSurface *window = gdk_surface_new_toplevel (gdk_display_get_default(), 10 , 10); GskRenderer *renderer = gsk_renderer_new_for_window (window); GdkTexture *texture = gsk_renderer_render_texture (renderer, GTK_NODE_VIEW (nodeview)->node, NULL); cairo_surface_t *rendered_surface; @@ -194,8 +194,8 @@ main (int argc, char **argv) if (compare_node) { GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); - GdkWindow *gdk_window = gdk_window_new_toplevel (gdk_display_get_default(), 10 , 10); - GskRenderer *renderer = gsk_renderer_new_for_window (gdk_window); + GdkSurface *gdk_surface = gdk_surface_new_toplevel (gdk_display_get_default(), 10 , 10); + GskRenderer *renderer = gsk_renderer_new_for_window (gdk_surface); GdkTexture *texture = gsk_renderer_render_texture (renderer, GTK_NODE_VIEW (nodeview)->node, NULL); GtkWidget *image = gtk_image_new_from_paintable (GDK_PAINTABLE (texture)); @@ -206,7 +206,7 @@ main (int argc, char **argv) gsk_renderer_unrealize (renderer); g_object_unref (texture); g_object_unref (renderer); - g_object_unref (gdk_window); + g_object_unref (gdk_surface); } else { |