mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget
This commit is contained in:
parent
26d837dd2f
commit
1577a7d415
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user