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. --- common/gmountsource.c | 2 +- common/gmounttracker.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common') 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, -- cgit v1.2.3