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>
This commit is contained in:
Simon McVittie 2011-08-08 18:22:42 +01:00 committed by David Zeuthen
parent 20387d262f
commit 03ae974f7c

View File

@ -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: