[gvfs] gdbus: Construct proxies without connecting signals and properties
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gdbus: Construct proxies without connecting signals and properties
- Date: Fri, 20 Jul 2012 16:29:16 +0000 (UTC)
commit ecf1aba3184fa46f870b87dce25a1e161b75f876
Author: Tomas Bzatek <tbzatek redhat com>
Date: Fri Jul 20 18:28:01 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/gdaemonvfs.c | 2 +-
metadata/meta-set.c | 2 +-
monitor/proxy/gproxyvolumemonitor.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c
index 394152c..e53f033 100644
--- a/client/gdaemonvfs.c
+++ b/client/gdaemonvfs.c
@@ -1294,7 +1294,7 @@ _g_daemon_vfs_get_metadata_proxy (GCancellable *cancellable, GError **error)
if (metadata_proxy == NULL)
{
metadata_proxy = gvfs_metadata_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_METADATA_NAME,
G_VFS_DBUS_METADATA_PATH,
cancellable,
diff --git a/metadata/meta-set.c b/metadata/meta-set.c
index 04a6b38..f57b1cf 100644
--- a/metadata/meta-set.c
+++ b/metadata/meta-set.c
@@ -101,7 +101,7 @@ main (int argc,
if (use_dbus)
{
proxy = gvfs_metadata_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_METADATA_NAME,
G_VFS_DBUS_METADATA_PATH,
NULL,
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index eb7a187..eb5d798 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]