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 161c9c511f..7358188fc0 100644
--- a/tests/testoffscreenwindow.c
+++ b/tests/testoffscreenwindow.c
@@ -11,7 +11,7 @@ da_expose (GtkWidget *widget,
if (GTK_WIDGET_DRAWABLE (widget))
{
- pixmap = gdk_offscreen_window_get_pixmap (GTK_WIDGET (offscreen)->window);
+ pixmap = gtk_offscreen_window_get_pixmap (offscreen);
cr = gdk_cairo_create (widget->window);
gdk_cairo_set_source_pixmap (cr, pixmap, 50, 50);