[nautilus/wip/csoriano/desktop-split: 3/53] application: allow to not have a bus manager
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/desktop-split: 3/53] application: allow to not have a bus manager
- Date: Tue, 5 Apr 2016 13:28:16 +0000 (UTC)
commit e74e13f922b09e991d602e518fb739aede2c9d0f
Author: Carlos Soriano <csoriano gnome org>
Date: Wed Mar 16 18:17:33 2016 +0100
application: allow to not have a bus manager
Children of nautilus application, like the desktop, could not have a
bus manager, since the owner of the bus is only nautilus.
For that, avoid to access a non existent bus manager, with little
impact on non-desktop code.
src/nautilus-application.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 3967381..c9f4213 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1200,6 +1200,12 @@ update_dbus_opened_locations (NautilusApplication *self)
g_return_if_fail (NAUTILUS_IS_APPLICATION (self));
priv = nautilus_application_get_instance_private (self);
+
+ /* Children of nautilus application could not handle the dbus, so don't
+ * do anything in that case */
+ if (!priv->fdb_manager)
+ return;
+
for (l = priv->windows; l != NULL; l = l->next) {
window = l->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]