[gtk+/refactor: 111/137] tests/testsocket_common.c: Use accessor functions to access GtkWidget



commit 0863607a544324fffea7bbc982914b43458f19f9
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Aug 16 00:32:13 2010 +0200

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

 tests/testsocket_common.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c
index f6937b8..1dc3af0 100644
--- a/tests/testsocket_common.c
+++ b/tests/testsocket_common.c
@@ -277,9 +277,9 @@ create_child_plug (guint32  xid,
 
   if (gtk_widget_get_realized (window))
 #if defined (GDK_WINDOWING_X11)
-    return GDK_WINDOW_XID (window->window);
+    return GDK_WINDOW_XID (gtk_widget_get_window (window));
 #elif defined (GDK_WINDOWING_WIN32)
-    return (guint32) GDK_WINDOW_HWND (window->window);
+    return (guint32) GDK_WINDOW_HWND (gtk_widget_get_window (window));
 #endif
   else
     return 0;



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