diff src/browser/sat_browser/libervia_widget.py @ 663:423182fea41c frontends_multi_profiles

browser_side: fixes OTR using the new resource system and proper triggers (send and receive message) or listener (presence update)
author souliane <souliane@mailoo.org>
date Tue, 03 Mar 2015 07:21:50 +0100
parents ebb602d8b3f2
children 849ffb24d5bf
line wrap: on
line diff
--- a/src/browser/sat_browser/libervia_widget.py	Tue Mar 03 06:51:13 2015 +0100
+++ b/src/browser/sat_browser/libervia_widget.py	Tue Mar 03 07:21:50 2015 +0100
@@ -362,7 +362,7 @@
 
         @param host (SatWebFrontend): SatWebFrontend instance
         @param title (unicode): title shown in the header of the widget
-        @param info (unicode, callable): info shown in the header of the widget
+        @param info (unicode): info shown in the header of the widget
         @param selectable (bool): True is widget can be selected by user
         """
         VerticalPanel.__init__(self)
@@ -375,12 +375,7 @@
         self._title = Label(title)
         self._title.setStyleName('widgetHeader_title')
         if info is not None:
-            if isinstance(info, unicode):
-                self._info = HTML(info)
-            else:  # the info will be set by a callback
-                assert callable(info)
-                self._info = HTML()
-                info(self._info.setHTML)
+            self._info = HTML(info)
             self._info.setStyleName('widgetHeader_info')
         else:
             self._info = None