diff src/browser/sat_browser/panels.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 cd56f2b0e85b
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py	Mon Sep 08 14:54:47 2014 +0200
+++ b/src/browser/sat_browser/panels.py	Mon Sep 08 15:32:33 2014 +0200
@@ -1121,7 +1121,7 @@
         self.type = type_
 
         # FIXME: temporary dirty initialization to display the OTR state
-        header_info = _('Encryption: none') if type_ == 'one2one' else None
+        header_info = host.plugins['otr'].getInfoText() if type_ == 'one2one' else None
 
         base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True)
         self.__body = AbsolutePanel()