summaryrefslogtreecommitdiff
path: root/tests/testoffscreenwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testoffscreenwindow.c')
-rw-r--r--tests/testoffscreenwindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testoffscreenwindow.c b/tests/testoffscreenwindow.c
index 852a073c49..bf6a321f13 100644
--- a/tests/testoffscreenwindow.c
+++ b/tests/testoffscreenwindow.c
@@ -13,7 +13,7 @@ da_expose (GtkWidget *widget,
{
pixmap = gtk_offscreen_window_get_pixmap (offscreen);
- cr = gdk_cairo_create (widget->window);
+ cr = gdk_cairo_create (gtk_widget_get_window (widget));
gdk_cairo_set_source_pixmap (cr, pixmap, 50, 50);
cairo_paint (cr);
cairo_destroy (cr);