diff 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
line wrap: on
line diff
--- a/src/browser/sat_browser/contact_list.py	Fri Feb 27 16:05:28 2015 +0100
+++ b/src/browser/sat_browser/contact_list.py	Fri Feb 27 22:53:27 2015 +0100
@@ -230,7 +230,7 @@
         to_show = [jid_ for jid_ in self._cache.keys() if self.entityToShow(jid_) and jid_!=self.whoami.bare]
         to_show.sort()
 
-        self._contacts_panel.display(to_show)
+        self._contacts_panel.setList(to_show)
 
         for jid_ in self._alerts:
             self._contacts_panel.setState(jid_, "messageWaiting", True)