Mercurial > libervia-web
diff src/browser/libervia_main.py @ 667:166f3b624816 frontends_multi_profiles
browser_side (blog): clean the MicroblogPanel:
- remove internal constants TOGGLE_EDITION_USE_ICON and NEW_MESSAGE_USE_BUTTON
- ignore the unibox and, as a consequence, remove the 'selected_entry' attribute
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 06 Mar 2015 14:29:37 +0100 |
parents | 6a8a1103ad10 |
children | a80c13249f5d |
line wrap: on
line diff
--- a/src/browser/libervia_main.py Thu Mar 05 13:27:41 2015 +0100 +++ b/src/browser/libervia_main.py Fri Mar 06 14:29:37 2015 +0100 @@ -306,8 +306,6 @@ self.bridge.getNewAccountDomain(callback=domain_cb, errback=domain_eb) self.plug_profiles([C.PROF_KEY_NONE]) # XXX: None was used intitially, but pyjamas bug when using variable arguments and None is the only arg. - microblog_widget = self.displayWidget(blog.MicroblogPanel, ()) - self.setSelected(microblog_widget) # self.discuss_panel.addWidget(panel.MicroblogPanel(self, [])) # # get cached params and refresh the display @@ -322,6 +320,10 @@ def profilePlugged(self, dummy): # FIXME: to be called as a "profilePlugged" listener? QuickApp.profilePlugged(self, dummy) + + microblog_widget = self.displayWidget(blog.MicroblogPanel, ()) + self.setSelected(microblog_widget) + # we fill the panels already here for wid in self.widgets.getWidgets(blog.MicroblogPanel): if wid.accept_all(): @@ -451,7 +453,7 @@ # FIXME self.initialised = True # initialisation phase is finished here for event_data in self.init_cache: # so we have to send all the cached events - self._personalEventCb(*event_data) + self.personalEventHandler(*event_data) del self.init_cache def _getProfileJidCB(self, jid_s): @@ -482,7 +484,8 @@ ## Signals callbacks ## - def _personalEventCb(self, sender, event_type, data): + def personalEventHandler(self, sender, event_type, data): + # FIXME: move some code from here to QuickApp if not self.initialised: self.init_cache.append((sender, event_type, data)) return