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



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

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

 tests/testxinerama.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testxinerama.c b/tests/testxinerama.c
index d9d37a9..e41752a 100644
--- a/tests/testxinerama.c
+++ b/tests/testxinerama.c
@@ -32,7 +32,7 @@ request (GtkWidget      *widget,
   gchar *str;
   GdkScreen *screen = gtk_widget_get_screen (widget);
   gint i = gdk_screen_get_monitor_at_window (screen,
-					     widget->window);
+                                             gtk_widget_get_window (widget));
 
   if (i < 0)
     str = g_strdup ("<big><span foreground='white' background='black'>Not on a monitor </span></big>");



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