diff src/browser/sat_browser/panels.py @ 536:048ae7314156

browser_side: temporary way to display the OTR state in the LiberviaWidget header
author souliane <souliane@mailoo.org>
date Sun, 07 Sep 2014 16:40:33 +0200
parents d2bf317b2d28
children d02335553b5d
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py	Fri Sep 05 19:29:35 2014 +0200
+++ b/src/browser/sat_browser/panels.py	Sun Sep 07 16:40:33 2014 +0200
@@ -1119,7 +1119,11 @@
             return
         self.target = target
         self.type = type_
-        base_widget.LiberviaWidget.__init__(self, host, title=target.bare, selectable=True)
+
+        # FIXME: temporary dirty initialization to display the OTR state
+        header_info = _('Encryption: none') if type_ == 'one2one' else None
+
+        base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True)
         self.__body = AbsolutePanel()
         self.__body.setStyleName('chatPanel_body')
         chat_area = HorizontalPanel()