summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-07-20 17:46:53 +0200
committerTomas Bzatek <tbzatek@redhat.com>2012-07-31 11:59:37 +0200
commit58df9f28bd3d516231eeb6581e54b84d274be3f6 (patch)
tree04eed353bcab937b151864d55513c733215ba7ea /client
parent584c90ed0861440fd052a6090d132dd0859efd0d (diff)
downloadgvfs-58df9f28bd3d516231eeb6581e54b84d274be3f6.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 'client')
-rw-r--r--client/gdaemonfile.c2
-rw-r--r--client/gdaemonvfs.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c
index 7acc2c9c..b647a6d4 100644
--- a/client/gdaemonfile.c
+++ b/client/gdaemonfile.c
@@ -2109,7 +2109,7 @@ g_daemon_file_mount_enclosing_volume (GFile *location,
data->mount_operation = g_object_ref (mount_operation);
gvfs_dbus_mount_tracker_proxy_new_for_bus (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
G_VFS_DBUS_DAEMON_NAME,
G_VFS_DBUS_MOUNTTRACKER_PATH,
NULL,
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index 0bdee720..04af48d2 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -610,7 +610,7 @@ create_mount_tracker_proxy ()
error = NULL;
proxy = gvfs_dbus_mount_tracker_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
G_VFS_DBUS_DAEMON_NAME,
G_VFS_DBUS_MOUNTTRACKER_PATH,
NULL,
@@ -959,7 +959,7 @@ _g_daemon_vfs_get_mount_info_async (GMountSpec *spec,
}
gvfs_dbus_mount_tracker_proxy_new_for_bus (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
+ G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES,
G_VFS_DBUS_DAEMON_NAME,
G_VFS_DBUS_MOUNTTRACKER_PATH,
NULL,