comparison 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
comparison
equal deleted inserted replaced
535:331cb6ea0235 536:048ae7314156
1117 if not target: 1117 if not target:
1118 log.error("Empty target !") 1118 log.error("Empty target !")
1119 return 1119 return
1120 self.target = target 1120 self.target = target
1121 self.type = type_ 1121 self.type = type_
1122 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, selectable=True) 1122
1123 # FIXME: temporary dirty initialization to display the OTR state
1124 header_info = _('Encryption: none') if type_ == 'one2one' else None
1125
1126 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True)
1123 self.__body = AbsolutePanel() 1127 self.__body = AbsolutePanel()
1124 self.__body.setStyleName('chatPanel_body') 1128 self.__body.setStyleName('chatPanel_body')
1125 chat_area = HorizontalPanel() 1129 chat_area = HorizontalPanel()
1126 chat_area.setStyleName('chatArea') 1130 chat_area.setStyleName('chatArea')
1127 if type_ == 'group': 1131 if type_ == 'group':