comparison 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
comparison
equal deleted inserted replaced
670:a80c13249f5d 671:2201ff543a05
94 self._body = AbsolutePanel() 94 self._body = AbsolutePanel()
95 self._body.setStyleName('chatPanel_body') 95 self._body.setStyleName('chatPanel_body')
96 chat_area = HorizontalPanel() 96 chat_area = HorizontalPanel()
97 chat_area.setStyleName('chatArea') 97 chat_area.setStyleName('chatArea')
98 if type_ == C.CHAT_GROUP: 98 if type_ == C.CHAT_GROUP:
99 self.occupants_panel = contact_panel.ContactsPanel(self, contacts_style="muc_contact", contacts_display=('resource',)) 99 self.occupants_panel = contact_panel.ContactsPanel(host,
100 contacts_style="muc_contact",
101 contacts_menus=(C.MENU_JID_CONTEXT),
102 contacts_display=('resource',))
100 self.occupants_panel.setStyleName("occupantsPanel") 103 self.occupants_panel.setStyleName("occupantsPanel")
101 chat_area.add(self.occupants_panel) 104 chat_area.add(self.occupants_panel)
102 self._body.add(chat_area) 105 self._body.add(chat_area)
103 self.content = AbsolutePanel() 106 self.content = AbsolutePanel()
104 self.content.setStyleName('chatContent') 107 self.content.setStyleName('chatContent')