[gvfs/gdbus-core] gdbus: Construct proxies without connecting signals and properties



commit 2b512eadd480203599ea8790b8d43a26d9bfd887
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 5cfe15f..d875d47 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 e508e4d..c500c58 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 7bbcc1b..dac6077 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 b4b6264..241fb22 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 aaf301f..7763c43 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 6a8cac9..9433820 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 118f1bf..58fabac 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]