[gtk+/refactor: 115/145] tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget



commit 2d49d6218b3381beea94558ac0561251b985e048
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Aug 16 00:32:56 2010 +0200

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

 tests/testoffscreenwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testoffscreenwindow.c b/tests/testoffscreenwindow.c
index 852a073..bf6a321 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]