comparison src/browser/libervia_main.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 90a5a5af2550
children 7a9c7b9f6a28
comparison
equal deleted inserted replaced
686:90a5a5af2550 687:3845a086f0b3
941 _dialog = dialog.GroupSelector([msg], self.contact_panel.getGroups(), [], "Add", ok_cb, cancel_cb) 941 _dialog = dialog.GroupSelector([msg], self.contact_panel.getGroups(), [], "Add", ok_cb, cancel_cb)
942 _dialog.setHTML('<b>Add contact request</b>') 942 _dialog.setHTML('<b>Add contact request</b>')
943 _dialog.show() 943 _dialog.show()
944 944
945 def _contactDeletedCb(self, entity): 945 def _contactDeletedCb(self, entity):
946 self.contact_panel.removeContact(entity) 946 self.contact_panel.removeContactBox(entity)
947 947
948 def _newContactCb(self, contact_jid, attributes, groups): 948 def _newContactCb(self, contact_jid, attributes, groups):
949 self.contact_panel.updateContact(contact_jid, attributes, groups) 949 self.contact_panel.updateContact(contact_jid, attributes, groups)
950 950
951 def _entityDataUpdatedCb(self, entity_jid_s, key, value): 951 def _entityDataUpdatedCb(self, entity_jid_s, key, value):