Mercurial > libervia-web
diff 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 |
line wrap: on
line diff
--- a/src/browser/sat_browser/panels.py Tue Sep 23 11:48:57 2014 +0200 +++ b/src/browser/sat_browser/panels.py Tue Sep 23 13:57:36 2014 +0200 @@ -1121,7 +1121,9 @@ self.type = type_ # FIXME: temporary dirty initialization to display the OTR state - header_info = host.plugins['otr'].getInfoText() if (type_ == 'one2one' and 'otr' in host.plugins) else None + def header_info_cb(cb): + host.plugins['otr'].infoTextCallback(target, cb) + header_info = header_info_cb if (type_ == 'one2one' and 'otr' in host.plugins) else None base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True) self.__body = AbsolutePanel()