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



commit f1b2964291c93d322748963df1b70e5e44437ca0
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Aug 16 00:33:12 2010 +0200

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

 tests/testoffscreen.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testoffscreen.c b/tests/testoffscreen.c
index ac711f5..bd92c70 100644
--- a/tests/testoffscreen.c
+++ b/tests/testoffscreen.c
@@ -383,8 +383,8 @@ main (int   argc,
       gtk_widget_show (redirect_win);
       gtk_widget_realize (redirect_win);
       gtk_widget_realize (window);
-      gdk_window_redirect_to_drawable (window->window,
-				       GDK_DRAWABLE (redirect_win->window),
+      gdk_window_redirect_to_drawable (gtk_widget_get_window (window),
+                                       GDK_DRAWABLE (gtk_widget_get_window (redirect_win)),
 				       0, 0, 0, 0, -1, -1);
     }
 



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