diff src/browser/sat_browser/base_widget.py @ 606:7af8f4ab3675 frontends_multi_profiles

browser side: fixed avatar getting + better DEFAULT/EMPTY avatars constants + use of jid.JID for microblog's author
author Goffi <goffi@goffi.org>
date Mon, 09 Feb 2015 21:55:16 +0100
parents ed6d8f7c6026
children ea27925ef2a8
line wrap: on
line diff
--- a/src/browser/sat_browser/base_widget.py	Mon Feb 09 21:46:15 2015 +0100
+++ b/src/browser/sat_browser/base_widget.py	Mon Feb 09 21:55:16 2015 +0100
@@ -205,13 +205,12 @@
             menu_styles.update(styles)
         base_menu.GenericMenuBar.__init__(self, host, vertical=vertical, styles=menu_styles)
 
-        # FIXME
-        # if hasattr(parent, 'addMenus'):
-        #     # regroup all the dynamic menu categories in a sub-menu
-        #     sub_menu = WidgetSubMenuBar(host, vertical=True)
-        #     parent.addMenus(sub_menu)
-        #     if len(sub_menu.getCategories()) > 0:
-        #         self.addCategory('', '', 'plugins', sub_menu)
+        if hasattr(parent, 'addMenus'):
+            # regroup all the dynamic menu categories in a sub-menu
+            sub_menu = WidgetSubMenuBar(host, vertical=True)
+            parent.addMenus(sub_menu)
+            if len(sub_menu.getCategories()) > 0:
+                self.addCategory('', '', 'plugins', sub_menu)
 
     @classmethod
     def getCategoryHTML(cls, menu_name_i18n, type_):