[gnome-shell] shell-app-system: Load settings apps



commit 004c5cf287b6d0766886d283c4ac9c60d1bc5b2b
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Aug 2 00:29:28 2011 +0200

    shell-app-system: Load settings apps
    
    When porting to the new gnome-menus API in commit 8f3bdd4f1, the
    initial loading of settings apps was left out, so settings panels
    are neither found nor can be launched from the top panel menus.

 src/shell-app-system.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index 80eada4..48b0ddf 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -347,6 +347,11 @@ reread_menus (ShellAppSystem *self)
           g_warning ("Failed to load apps: %s", error->message);
           return;
         }
+      if (!gmenu_tree_load_sync (self->priv->settings_tree, &error))
+        {
+          g_warning ("Failed to load settings: %s", error->message);
+          return;
+        }
       self->priv->loaded = TRUE;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]