diff src/browser/sat_browser/base_widget.py @ 543:d02335553b5d

browser_side (plugin OTR): display OTR states with icons instead of a text
author souliane <souliane@mailoo.org>
date Mon, 08 Sep 2014 15:32:33 +0200
parents 048ae7314156
children 77372641e05d
line wrap: on
line diff
--- a/src/browser/sat_browser/base_widget.py	Mon Sep 08 14:54:47 2014 +0200
+++ b/src/browser/sat_browser/base_widget.py	Mon Sep 08 15:32:33 2014 +0200
@@ -29,6 +29,7 @@
 from pyjamas.ui.TabPanel import TabPanel
 from pyjamas.ui.HTMLPanel import HTMLPanel
 from pyjamas.ui.Label import Label
+from pyjamas.ui.HTML import HTML
 from pyjamas.ui.Button import Button
 from pyjamas.ui.Widget import Widget
 from pyjamas.ui.DragWidget import DragWidget
@@ -204,7 +205,7 @@
         """
         @param parent (LiberviaWidget): LiberWidget instance
         @param host (SatWebFrontend): SatWebFrontend instance
-        @param title (Widget): text widget instance
+        @param title (Label, HTML): text widget instance
         @param info (Widget): text widget instance
         """
         AbsolutePanel.__init__(self)
@@ -244,7 +245,7 @@
         self.__title = Label(title)
         self.__title.setStyleName('widgetHeader_title')
         if info:
-            self.__info = Label(info)
+            self.__info = HTML(info)
             self.__info.setStyleName('widgetHeader_info')
         else:
             self.__info = None
@@ -392,7 +393,7 @@
         """change the info in the header of the widget
         @param text: text of the new title"""
         try:
-            self.__info.setText(text)
+            self.__info.setHTML(text)
         except AttributeError:
             log.error("LiberviaWidget.setInfo: info widget has not been initialized!")