diff src/browser/sat_browser/chat.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 ed6d8f7c6026
children 5baca9d46c34
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py	Tue Feb 10 20:52:02 2015 +0100
+++ b/src/browser/sat_browser/chat.py	Wed Feb 11 11:18:13 2015 +0100
@@ -360,4 +360,4 @@
 
 
 quick_widgets.register(QuickChat, Chat)
-base_widget.LiberviaWidget.addDropKey("CONTACT", lambda host, item: host.widgets.getOrCreateWidget(Chat, jid.JID(item), profile=C.PROF_KEY_NONE, on_new_widget=None, on_existing_widget=C.WIDGET_RECREATE))
+base_widget.LiberviaWidget.addDropKey("CONTACT", lambda host, item: host.displayWidget(Chat, jid.JID(item), dropped=True))