Mercurial > libervia-web
comparison src/browser/sat_browser/contact_list.py @ 660:267761bf7f08 frontends_multi_profiles
browser side (contact list): ContactPanels is used instead of OccupantsList in MUC:
- ContactPanels become the generic class for all lists of contacts
- OccupantsList will be removed
- need to implements specials icons (e.g. for games) in ContactBox
- ContactBox now manage a display arguments to set which data we want to display
- ContactsPanel.display renamed to setList
- ContactBox style can be changed when instaciating parent ContactsPanel
- muc_contact CSS class is used for list of MUC occupants
Not fully functionnal yet
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Feb 2015 22:53:27 +0100 |
parents | 476d8d9973d3 |
children | 1bf645e73fe8 |
comparison
equal
deleted
inserted
replaced
659:8e7d4de56e75 | 660:267761bf7f08 |
---|---|
228 | 228 |
229 ### JIDS ### | 229 ### JIDS ### |
230 to_show = [jid_ for jid_ in self._cache.keys() if self.entityToShow(jid_) and jid_!=self.whoami.bare] | 230 to_show = [jid_ for jid_ in self._cache.keys() if self.entityToShow(jid_) and jid_!=self.whoami.bare] |
231 to_show.sort() | 231 to_show.sort() |
232 | 232 |
233 self._contacts_panel.display(to_show) | 233 self._contacts_panel.setList(to_show) |
234 | 234 |
235 for jid_ in self._alerts: | 235 for jid_ in self._alerts: |
236 self._contacts_panel.setState(jid_, "messageWaiting", True) | 236 self._contacts_panel.setState(jid_, "messageWaiting", True) |
237 | 237 |
238 def onWindowResized(self, width, height): | 238 def onWindowResized(self, width, height): |