[glib] g_dbus_proxy_get_property: use accessors for all mutable state



commit 03ae974f7cc992450907401f45e7de645caff141
Author: Simon McVittie <simon mcvittie collabora co uk>
Date:   Mon Aug 8 18:22:42 2011 +0100

    g_dbus_proxy_get_property: use accessors for all mutable state
    
    These ought to have thread-locking, and having it in the accessor seems
    better than duplicating it here.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 gio/gdbusproxy.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index f776662..a0edffc 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -265,7 +265,7 @@ g_dbus_proxy_get_property (GObject    *object,
       break;
 
     case PROP_G_NAME_OWNER:
-      g_value_set_string (value, proxy->priv->name_owner);
+      g_value_take_string (value, g_dbus_proxy_get_name_owner (proxy));
       break;
 
     case PROP_G_OBJECT_PATH:
@@ -277,7 +277,7 @@ g_dbus_proxy_get_property (GObject    *object,
       break;
 
     case PROP_G_DEFAULT_TIMEOUT:
-      g_value_set_int (value, proxy->priv->timeout_msec);
+      g_value_set_int (value, g_dbus_proxy_get_default_timeout (proxy));
       break;
 
     case PROP_G_INTERFACE_INFO:



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