comparison 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
comparison
equal deleted inserted replaced
605:917e271975d9 606:7af8f4ab3675
203 menu_styles = {'menu_bar': 'widgetHeader_buttonGroup'} 203 menu_styles = {'menu_bar': 'widgetHeader_buttonGroup'}
204 if styles: 204 if styles:
205 menu_styles.update(styles) 205 menu_styles.update(styles)
206 base_menu.GenericMenuBar.__init__(self, host, vertical=vertical, styles=menu_styles) 206 base_menu.GenericMenuBar.__init__(self, host, vertical=vertical, styles=menu_styles)
207 207
208 # FIXME 208 if hasattr(parent, 'addMenus'):
209 # if hasattr(parent, 'addMenus'): 209 # regroup all the dynamic menu categories in a sub-menu
210 # # regroup all the dynamic menu categories in a sub-menu 210 sub_menu = WidgetSubMenuBar(host, vertical=True)
211 # sub_menu = WidgetSubMenuBar(host, vertical=True) 211 parent.addMenus(sub_menu)
212 # parent.addMenus(sub_menu) 212 if len(sub_menu.getCategories()) > 0:
213 # if len(sub_menu.getCategories()) > 0: 213 self.addCategory('', '', 'plugins', sub_menu)
214 # self.addCategory('', '', 'plugins', sub_menu)
215 214
216 @classmethod 215 @classmethod
217 def getCategoryHTML(cls, menu_name_i18n, type_): 216 def getCategoryHTML(cls, menu_name_i18n, type_):
218 return cls.ITEM_TPL % type_ 217 return cls.ITEM_TPL % type_
219 218