diff src/browser/libervia_main.py @ 654:40c72f3b7638 frontends_multi_profiles

browser_side: MainPanel is now based on a DockPanel, which allows to use less tables and also to remove some "window resized" listeners
author souliane <souliane@mailoo.org>
date Fri, 27 Feb 2015 02:39:43 +0100
parents 2df91d0308ac
children 048401e5c506
line wrap: on
line diff
--- a/src/browser/libervia_main.py	Fri Feb 27 01:45:34 2015 +0100
+++ b/src/browser/libervia_main.py	Fri Feb 27 02:39:43 2015 +0100
@@ -81,7 +81,6 @@
         self.bridge_signals = json.BridgeSignals(self)
         QuickApp.__init__(self, json.BridgeCall)
         self.uni_box = None # FIXME: to be removed
-        self.status_panel = HTML('<br />')
         self.panel = main_panel.MainPanel(self)
         self.tab_panel = self.panel.tab_panel
         self.tab_panel.addTabListener(self)
@@ -307,9 +306,8 @@
             del self._register_box  # don't work if self._register_box is None
 
         # display the real presence status panel
-        self.panel.header.remove(self.status_panel)
-        self.status_panel = main_panel.PresenceStatusPanel(self)
-        self.panel.header.add(self.status_panel)
+        self.presence_status_panel = main_panel.PresenceStatusPanel(self)
+        self.panel.addPresenceStatusPanel(self.presence_status_panel)
 
         self.bridge_signals.call('getSignals', self.bridge_signals.signalHandler)