[nautilus] dbus-manager: don't use an object manager
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] dbus-manager: don't use an object manager
- Date: Wed, 30 Apr 2014 09:24:52 +0000 (UTC)
commit 24f0aeef85e1d66e5df255b452ac3f38e22833bd
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 28 22:40:00 2014 -0700
dbus-manager: don't use an object manager
We have no need to.
libnautilus-private/nautilus-dbus-manager.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/libnautilus-private/nautilus-dbus-manager.c b/libnautilus-private/nautilus-dbus-manager.c
index 170a173..6fa3f0d 100644
--- a/libnautilus-private/nautilus-dbus-manager.c
+++ b/libnautilus-private/nautilus-dbus-manager.c
@@ -35,7 +35,6 @@
struct _NautilusDBusManager {
GObject parent;
- GDBusObjectManagerServer *object_manager;
NautilusDBusFileOperations *file_operations;
};
@@ -56,11 +55,6 @@ nautilus_dbus_manager_dispose (GObject *object)
self->file_operations = NULL;
}
- if (self->object_manager) {
- g_object_unref (self->object_manager);
- self->object_manager = NULL;
- }
-
G_OBJECT_CLASS (nautilus_dbus_manager_parent_class)->dispose (object);
}
@@ -138,7 +132,6 @@ nautilus_dbus_manager_init (NautilusDBusManager *self)
connection = g_application_get_dbus_connection (g_application_get_default ());
- self->object_manager = g_dbus_object_manager_server_new ("/org/gnome/Nautilus");
self->file_operations = nautilus_dbus_file_operations_skeleton_new ();
g_signal_connect (self->file_operations,
@@ -153,11 +146,9 @@ nautilus_dbus_manager_init (NautilusDBusManager *self)
"handle-empty-trash",
G_CALLBACK (handle_empty_trash),
self);
-
g_dbus_interface_skeleton_export (G_DBUS_INTERFACE_SKELETON (self->file_operations), connection,
"/org/gnome/Nautilus", NULL);
- g_dbus_object_manager_server_set_connection (self->object_manager, connection);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]