[libgconf-bridge] Use accessor functions instead direct access



commit 102b8d5cd8ccd210f7186fdb365fdd1cfaf15d73
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Dec 7 23:35:18 2009 +0100

    Use accessor functions instead direct access

 libgconf-bridge/gconf-bridge.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libgconf-bridge/gconf-bridge.c b/libgconf-bridge/gconf-bridge.c
index d85e50f..e450425 100644
--- a/libgconf-bridge/gconf-bridge.c
+++ b/libgconf-bridge/gconf-bridge.c
@@ -602,7 +602,11 @@ window_binding_perform_scheduled_sync (WindowBinding *binding)
                 char *key;
                 GdkWindowState state;
 
+#if GTK_CHECK_VERSION (2,14,0)
+                state = gdk_window_get_state (gtk_widget_get_window (GTK_WIDGET (binding->window)));
+#else
                 state = gdk_window_get_state (GTK_WIDGET (binding->window)->window);
+#endif
 
                 if (state & GDK_WINDOW_STATE_MAXIMIZED) {
                         key = g_strconcat (binding->key_prefix, "_maximized", NULL);



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