From 58df9f28bd3d516231eeb6581e54b84d274be3f6 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 20 Jul 2012 17:46:53 +0200 Subject: 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. --- client/gdaemonfile.c | 2 +- client/gdaemonvfs.c | 4 ++-- common/gmountsource.c | 2 +- common/gmounttracker.c | 2 +- daemon/daemon-main.c | 2 +- daemon/gvfsbackend.c | 2 +- daemon/mount.c | 2 +- 7 files changed, 8 insertions(+), 8 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, diff --git a/common/gmountsource.c b/common/gmountsource.c index 4aa107c9..a7692ae9 100644 --- a/common/gmountsource.c +++ b/common/gmountsource.c @@ -184,7 +184,7 @@ create_mount_operation_proxy (GMountSource *source, error = NULL; proxy = gvfs_dbus_mount_operation_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, source->dbus_id, source->obj_path, NULL, diff --git a/common/gmounttracker.c b/common/gmounttracker.c index 19792e2b..1aea340c 100644 --- a/common/gmounttracker.c +++ b/common/gmounttracker.c @@ -470,7 +470,7 @@ init_connection (GMountTracker *tracker) error = NULL; tracker->proxy = gvfs_dbus_mount_tracker_proxy_new_sync (tracker->connection, - G_DBUS_PROXY_FLAGS_NONE, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, G_VFS_DBUS_DAEMON_NAME, G_VFS_DBUS_MOUNTTRACKER_PATH, NULL, diff --git a/daemon/daemon-main.c b/daemon/daemon-main.c index b634b938..d218f26a 100644 --- a/daemon/daemon-main.c +++ b/daemon/daemon-main.c @@ -194,7 +194,7 @@ send_spawned (gboolean succeeded, error = NULL; g_print ("send_spawned: before proxy creation, spawner_id = '%s', spawner_path = '%s'\n", spawner_id, spawner_path); proxy = gvfs_dbus_spawner_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, spawner_id, spawner_path, NULL, diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c index ba47dd86..242a7fe7 100644 --- a/daemon/gvfsbackend.c +++ b/daemon/gvfsbackend.c @@ -620,7 +620,7 @@ create_mount_tracker_proxy (GVfsBackend *backend, data->backend = g_object_ref (backend); 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/daemon/mount.c b/daemon/mount.c index 6349c26b..d872c019 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -343,7 +343,7 @@ mountable_mount_with_name (MountData *data, g_print ("mountable_mount_with_name: dbus_name = '%s'\n", dbus_name); gvfs_dbus_mountable_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, dbus_name, G_VFS_DBUS_MOUNTABLE_PATH, NULL, -- cgit v1.2.1