summaryrefslogtreecommitdiff
path: root/tests/showrendernode.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/showrendernode.c')
-rw-r--r--tests/showrendernode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/showrendernode.c b/tests/showrendernode.c
index d4de840c50..e0b2210ef3 100644
--- a/tests/showrendernode.c
+++ b/tests/showrendernode.c
@@ -94,7 +94,7 @@ gtk_node_view_finalize (GObject *object)
static void
gtk_node_view_init (GtkNodeView *self)
{
- gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
+ gtk_widget_set_has_surface (GTK_WIDGET (self), FALSE);
}
static void
@@ -165,8 +165,8 @@ main (int argc, char **argv)
if (write_to_filename != NULL)
{
- GdkWindow *window = gdk_window_new_toplevel (gdk_display_get_default(), 10 , 10);
- GskRenderer *renderer = gsk_renderer_new_for_window (window);
+ GdkSurface *window = gdk_surface_new_toplevel (gdk_display_get_default(), 10 , 10);
+ GskRenderer *renderer = gsk_renderer_new_for_surface (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_surface (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
{