diff src/browser/sat_browser/plugin_sec_otr.py @ 616:1c0d5a87c554 frontends_multi_profiles

browser_side: add and use method displayWidget to harmonize widget's management in Libervia (not completely done, there are some issues)
author souliane <souliane@mailoo.org>
date Wed, 11 Feb 2015 11:18:13 +0100
parents a5019e62c3e9
children 9092e624bb27
line wrap: on
line diff
--- a/src/browser/sat_browser/plugin_sec_otr.py	Tue Feb 10 20:52:02 2015 +0100
+++ b/src/browser/sat_browser/plugin_sec_otr.py	Wed Feb 11 11:18:13 2015 +0100
@@ -32,7 +32,7 @@
 from sat_frontends.tools import jid
 import otrjs_wrapper as otr
 import dialog
-import panels
+import chat
 
 
 NS_OTR = "otr_plugin"
@@ -449,7 +449,7 @@
             if otrctx is None:
                 def confirm(confirm):
                     if confirm:
-                        self.host.getOrCreateLiberviaWidget(panels.ChatPanel, {'item': jid_})
+                        self.host.displayWidget(chat.Chat, jid_)
                         decrypt(self.context_manager.startContext(jid_))
                     else:
                         # FIXME: plain text messages with whitespaces would be lost here when WHITESPACE_START_AKE is True