comparison 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
comparison
equal deleted inserted replaced
542:fb20b1423143 543:d02335553b5d
1119 return 1119 return
1120 self.target = target 1120 self.target = target
1121 self.type = type_ 1121 self.type = type_
1122 1122
1123 # FIXME: temporary dirty initialization to display the OTR state 1123 # FIXME: temporary dirty initialization to display the OTR state
1124 header_info = _('Encryption: none') if type_ == 'one2one' else None 1124 header_info = host.plugins['otr'].getInfoText() if type_ == 'one2one' else None
1125 1125
1126 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True) 1126 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True)
1127 self.__body = AbsolutePanel() 1127 self.__body = AbsolutePanel()
1128 self.__body.setStyleName('chatPanel_body') 1128 self.__body.setStyleName('chatPanel_body')
1129 chat_area = HorizontalPanel() 1129 chat_area = HorizontalPanel()