[gvfs/gdbus-core: 33/49] gdbus: Construct proxies without connecting signals and properties
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/gdbus-core: 33/49] gdbus: Construct proxies without connecting signals and properties
- Date: Tue, 31 Jul 2012 10:15:13 +0000 (UTC)
commit 58df9f28bd3d516231eeb6581e54b84d274be3f6
Author: Tomas Bzatek <tbzatek redhat com>
Date: Fri Jul 20 17:46:53 2012 +0200
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 7acc2c9..b647a6d 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 0bdee72..04af48d 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 4aa107c..a7692ae 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 19792e2..1aea340 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 b634b93..d218f26 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 ba47dd8..242a7fe 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 6349c26..d872c01 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]