[nautilus/wip/csoriano/destktop-split2: 3/3] application: allow to not have a bus manager



commit 8bc3f7ee794be7b9fbe9464b6dd4fb52fe2e2717
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 9bfee01..d1a3dfe 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1201,6 +1201,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]