comparison src/browser/libervia_main.py @ 843:83a40d786e7a

browser: use new style calls for getSignals
author Goffi <goffi@goffi.org>
date Fri, 15 Jan 2016 15:42:37 +0100
parents 09ace5cbcb9b
children 6f0a127077c4
comparison
equal deleted inserted replaced
842:3eb26b269539 843:83a40d786e7a
159 159
160 def gotLibervia(version): 160 def gotLibervia(version):
161 self._versions["libervia"] = version 161 self._versions["libervia"] = version
162 gotVersion() 162 gotVersion()
163 163
164 self.bridge.getVersion(callback=gotSat) 164 self.bridge.getVersion(callback=gotSat, profile=None)
165 self.bridge.getLiberviaVersion(callback=gotLibervia, profile=None) # XXX: bridge direct call expect a profile, even for method with no profile needed 165 self.bridge.getLiberviaVersion(callback=gotLibervia, profile=None) # XXX: bridge direct call expect a profile, even for method with no profile needed
166 166
167 def registerSignal(self, functionName, handler=None, iface="core", with_profile=True): 167 def registerSignal(self, functionName, handler=None, iface="core", with_profile=True):
168 if handler is None: 168 if handler is None:
169 callback = getattr(self, "{}{}".format(functionName, "Handler")) 169 callback = getattr(self, "{}{}".format(functionName, "Handler"))
347 # display the presence status panel and tab bar 347 # display the presence status panel and tab bar
348 self.presence_status_panel = main_panel.PresenceStatusPanel(self) 348 self.presence_status_panel = main_panel.PresenceStatusPanel(self)
349 self.panel.addPresenceStatusPanel(self.presence_status_panel) 349 self.panel.addPresenceStatusPanel(self.presence_status_panel)
350 self.panel.tab_panel.getTabBar().setVisible(True) 350 self.panel.tab_panel.getTabBar().setVisible(True)
351 351
352 self.bridge_signals.call('getSignals', self.bridge_signals.signalHandler) 352 self.bridge_signals.getSignals(callback=self.bridge_signals.signalHandler, profile=None)
353 353
354 def domain_cb(value): 354 def domain_cb(value):
355 self._defaultDomain = value 355 self._defaultDomain = value
356 log.info(u"new account domain: %s" % value) 356 log.info(u"new account domain: %s" % value)
357 357