comparison src/browser/libervia_main.py @ 788:7ebde6d1a4bd

browser side: fixed public blog menu (moved temporarily to frontend side)
author Goffi <goffi@goffi.org>
date Wed, 02 Dec 2015 11:15:58 +0100
parents f3cd261ea12f
children f8a7a046ff9c
comparison
equal deleted inserted replaced
787:b2a75a103aac 788:7ebde6d1a4bd
314 # and finally the menus which must appear at the bottom 314 # and finally the menus which must appear at the bottom
315 self.menus.addMenu(C.MENU_GLOBAL, (D_(u"General"), D_(u"Disconnect")), callback=main_menu.onDisconnect) 315 self.menus.addMenu(C.MENU_GLOBAL, (D_(u"General"), D_(u"Disconnect")), callback=main_menu.onDisconnect)
316 316
317 # we can now display all the menus 317 # we can now display all the menus
318 main_menu.update(C.MENU_GLOBAL) 318 main_menu.update(C.MENU_GLOBAL)
319
320 # XXX: temp, will be reworked in the backed static blog plugin
321 self.menus.addMenu(C.MENU_JID_CONTEXT, (D_(u"User"), D_("Public blog")), callback=main_menu.onPublicBlog)
319 322
320 def _isRegisteredCB(self, result): 323 def _isRegisteredCB(self, result):
321 registered, warning = result 324 registered, warning = result
322 if not registered: 325 if not registered:
323 self._register_box = register.RegisterBox(self.logged) 326 self._register_box = register.RegisterBox(self.logged)