tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget

This commit is contained in:
Javier Jardón 2010-08-16 00:32:56 +02:00
parent 26d837dd2f
commit 1577a7d415

View File

@ -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);