Mercurial > libervia-web
diff src/browser/sat_browser/chat.py @ 671:2201ff543a05 frontends_multi_profiles
browser_side: replace ContactsPanel and ContactBox init "parent" attribute with "host" + menus bound to the avatar can be parameterized
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 09 Mar 2015 16:30:06 +0100 |
parents | 423182fea41c |
children | b39a9eddfe56 |
line wrap: on
line diff
--- a/src/browser/sat_browser/chat.py Mon Mar 09 16:27:20 2015 +0100 +++ b/src/browser/sat_browser/chat.py Mon Mar 09 16:30:06 2015 +0100 @@ -96,7 +96,10 @@ chat_area = HorizontalPanel() chat_area.setStyleName('chatArea') if type_ == C.CHAT_GROUP: - self.occupants_panel = contact_panel.ContactsPanel(self, contacts_style="muc_contact", contacts_display=('resource',)) + self.occupants_panel = contact_panel.ContactsPanel(host, + contacts_style="muc_contact", + contacts_menus=(C.MENU_JID_CONTEXT), + contacts_display=('resource',)) self.occupants_panel.setStyleName("occupantsPanel") chat_area.add(self.occupants_panel) self._body.add(chat_area)