comparison src/browser/sat_browser/contact_list.py @ 912:1ced5b522ae2

browser side(contact list): fixed calls to getGroupData
author Goffi <goffi@goffi.org>
date Wed, 10 Aug 2016 23:22:49 +0200
parents 997cf25e785c
children fd4eae654182
comparison
equal deleted inserted replaced
911:997cf25e785c 912:1ced5b522ae2
210 def onMouseUp(self, sender, x, y): 210 def onMouseUp(self, sender, x, y):
211 pass 211 pass
212 212
213 def onMouseEnter(self, sender): 213 def onMouseEnter(self, sender):
214 if isinstance(sender, GroupLabel): 214 if isinstance(sender, GroupLabel):
215 jids = self.getGroupData(sender.group, "jids") 215 jids = self.contact_list.getGroupData(sender.group, "jids")
216 for contact in self._contacts_panel.getBoxes(): 216 for contact in self._contacts_panel.getBoxes():
217 if contact.jid in jids: 217 if contact.jid in jids:
218 contact.label.addStyleName("selected") 218 contact.label.addStyleName("selected")
219 219
220 def onMouseLeave(self, sender): 220 def onMouseLeave(self, sender):
221 if isinstance(sender, GroupLabel): 221 if isinstance(sender, GroupLabel):
222 jids = self.getGroupData(sender.group, "jids") 222 jids = self.contact_list.getGroupData(sender.group, "jids")
223 for contact in self._contacts_panel.getBoxes(): 223 for contact in self._contacts_panel.getBoxes():
224 if contact.jid in jids: 224 if contact.jid in jids:
225 contact.label.removeStyleName("selected") 225 contact.label.removeStyleName("selected")
226 226
227 def onAvatarUpdate(self, jid_, hash_, profile): 227 def onAvatarUpdate(self, jid_, hash_, profile):