diff options
author | Alexander Larsson <alexl@redhat.com> | 2007-09-25 09:59:40 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-25 09:59:40 +0000 |
commit | 1cd0ca1e977c0b5ce7253835e942ad35c420ac77 (patch) | |
tree | b0ee29ba7e22bcd56a4c2d9171856ee4636f5376 /common/gmountoperationdbus.c | |
parent | bdc2cae5a5026eac1e885b1576c17e4e8b21a4c5 (diff) | |
download | gvfs-1cd0ca1e977c0b5ce7253835e942ad35c420ac77.tar.gz |
Pass in DBusConnection to use instead of using default one
2007-09-25 Alexander Larsson <alexl@redhat.com>
* common/gmountoperationdbus.[ch]:
* common/gmounttracker.[ch]:
Pass in DBusConnection to use instead of using default one
* client/gdaemonfile.c:
* client/gdaemonvfs.[ch]:
* client/gvfsdaemondbus.c:
Use private dbus connection even for async calls, since the
mainloop integration is conflicting with dbus-glib.
This is a temporary measure until this is solved in a better way.
* client/gdaemonvolumemonitor.c:
* client/gvfsfusedaemon.c:
* daemon/gvfsbackendsmbbrowse.c:
Update to the API changes
svn path=/trunk/; revision=959
Diffstat (limited to 'common/gmountoperationdbus.c')
-rw-r--r-- | common/gmountoperationdbus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/gmountoperationdbus.c b/common/gmountoperationdbus.c index 8de92a60..b17197b8 100644 --- a/common/gmountoperationdbus.c +++ b/common/gmountoperationdbus.c @@ -44,7 +44,8 @@ g_mount_operation_dbus_free (GMountOperationDBus *op_dbus) } GMountSource * -g_mount_operation_dbus_wrap (GMountOperation *op) +g_mount_operation_dbus_wrap (GMountOperation *op, + DBusConnection *connection) { GMountOperationDBus *op_dbus; static int mount_id = 0; @@ -59,7 +60,7 @@ g_mount_operation_dbus_wrap (GMountOperation *op) op_dbus = g_new0 (GMountOperationDBus, 1); op_dbus->op = op; - op_dbus->connection = dbus_bus_get (DBUS_BUS_SESSION, NULL); + op_dbus->connection = dbus_connection_ref (connection); op_dbus->obj_path = g_strdup_printf ("/org/gtk/gvfs/mountop/%d", mount_id++); if (op_dbus->connection) { |