Mercurial > libervia-web
comparison src/browser/sat_browser/panels.py @ 559:77372641e05d
browser_side (plugin OTR): display the correct icons on opening the window + auto-open on accepted invitation
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 23 Sep 2014 13:57:36 +0200 |
parents | cd56f2b0e85b |
children | fed185c95f1c |
comparison
equal
deleted
inserted
replaced
558:b38629924602 | 559:77372641e05d |
---|---|
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 = host.plugins['otr'].getInfoText() if (type_ == 'one2one' and 'otr' in host.plugins) else None | 1124 def header_info_cb(cb): |
1125 host.plugins['otr'].infoTextCallback(target, cb) | |
1126 header_info = header_info_cb if (type_ == 'one2one' and 'otr' in host.plugins) else None | |
1125 | 1127 |
1126 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True) | 1128 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True) |
1127 self.__body = AbsolutePanel() | 1129 self.__body = AbsolutePanel() |
1128 self.__body.setStyleName('chatPanel_body') | 1130 self.__body.setStyleName('chatPanel_body') |
1129 chat_area = HorizontalPanel() | 1131 chat_area = HorizontalPanel() |