summaryrefslogtreecommitdiff
path: root/monitor/proxy
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-07-20 18:28:01 +0200
committerTomas Bzatek <tbzatek@redhat.com>2012-07-20 18:28:01 +0200
commitecf1aba3184fa46f870b87dce25a1e161b75f876 (patch)
tree718daddc87110f2f2c78152a49102255f5b17b10 /monitor/proxy
parent0e43394e03efcb6f5cff048b0765771e9ea8e406 (diff)
downloadgvfs-ecf1aba3184fa46f870b87dce25a1e161b75f876.tar.gz
gdbus: Construct proxies without connecting signals and properties
Use G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS and G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flags where applicable.
Diffstat (limited to 'monitor/proxy')
-rw-r--r--monitor/proxy/gproxyvolumemonitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index eb7a187a..eb5d7981 100644
--- a/monitor/proxy/gproxyvolumemonitor.c
+++ b/monitor/proxy/gproxyvolumemonitor.c
@@ -965,7 +965,7 @@ g_proxy_volume_monitor_constructor (GType type,
error = NULL;
monitor->proxy = gvfs_remote_volume_monitor_proxy_new_sync (the_session_bus,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
dbus_name,
"/org/gtk/Private/RemoteVolumeMonitor",
NULL,
@@ -1130,7 +1130,7 @@ is_remote_monitor_supported (const char *dbus_name)
error = NULL;
proxy = gvfs_remote_volume_monitor_proxy_new_sync (the_session_bus,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
dbus_name,
"/org/gtk/Private/RemoteVolumeMonitor",
NULL,