[alacarte] MenuEditor: Put back the top-level "Applications" menu



commit eeb19696e948c61f11405564fa9d2d91a1fe31cf
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jun 5 14:17:26 2012 -0400

    MenuEditor: Put back the top-level "Applications" menu
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677420

 Alacarte/MenuEditor.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Alacarte/MenuEditor.py b/Alacarte/MenuEditor.py
index 73d25f5..352379e 100644
--- a/Alacarte/MenuEditor.py
+++ b/Alacarte/MenuEditor.py
@@ -106,9 +106,10 @@ class MenuEditor(object):
             pass
         self.save()
 
-    def getMenus(self, parent=None):
+    def getMenus(self, parent):
         if parent is None:
-            parent = self.applications.tree.get_root_directory()
+            yield (self.applications.tree.get_root_directory(), True)
+            return
 
         item_iter = parent.iter()
         item_type = item_iter.next()



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