comparison src/browser/sat_browser/contact_group.py @ 687:3845a086f0b3

browser_side: update ContactList, Chat, ContactsPanel, ContactBox, ContactLabel to update the display using listeners as it is done in quick_frontend: - Chat uses presence and avatar listener, remove unecessary methods for MUC and contact states - contact list doesn't add unecessary ContactBox (e.g for MUC bare entities) - nick, message alerts are handled directly in ContactLabel
author souliane <souliane@mailoo.org>
date Mon, 23 Mar 2015 09:35:46 +0100
parents 9877607c719a
children 16079280a39e
comparison
equal deleted inserted replaced
686:90a5a5af2550 687:3845a086f0b3
222 contacts.remove(contact) 222 contacts.remove(contact)
223 else: 223 else:
224 contacts = self.all_contacts 224 contacts = self.all_contacts
225 for contact in contacts: 225 for contact in contacts:
226 if self.toggle.showAll: 226 if self.toggle.showAll:
227 self.contacts.getContactBox(contact).setVisible(True) 227 self.contacts.updateContactBox(contact).setVisible(True)
228 else: 228 else:
229 if contact in self.groups.items_remaining: 229 if contact in self.groups.items_remaining:
230 self.contacts.getContactBox(contact).setVisible(True) 230 self.contacts.updateContactBox(contact).setVisible(True)
231 else: 231 else:
232 self.contacts.getContactBox(contact).setVisible(False) 232 self.contacts.updateContactBox(contact).setVisible(False)
233 233
234 def __close(self): 234 def __close(self):
235 """Remove the widget from parent or close the popup.""" 235 """Remove the widget from parent or close the popup."""
236 if isinstance(self.container, DialogBox): 236 if isinstance(self.container, DialogBox):
237 self.container.hide() 237 self.container.hide()