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



commit 1c02fa6f624efe02b0eb0b748c543d8c397b51de
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]