Mercurial > libervia-web
comparison src/browser/sat_browser/contact_list.py @ 787:b2a75a103aac
browser side (contact list): fixed a traceback on mouse enter/leave + bad attribute name
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 02 Dec 2015 11:15:55 +0100 |
parents | fc941d0d97f8 |
children | f8a7a046ff9c |
comparison
equal
deleted
inserted
replaced
786:f0ad3f62bae2 | 787:b2a75a103aac |
---|---|
209 pass | 209 pass |
210 | 210 |
211 def onMouseEnter(self, sender): | 211 def onMouseEnter(self, sender): |
212 if isinstance(sender, GroupLabel): | 212 if isinstance(sender, GroupLabel): |
213 jids = self.getGroupData(sender.group, "jids") | 213 jids = self.getGroupData(sender.group, "jids") |
214 for contact in self._contacts_panel: | 214 for contact in self._contacts_panel.getBoxes(): |
215 if contact.jid in jids: | 215 if contact.jid in jids: |
216 contact.label.addStyleName("selected") | 216 contact.label.addStyleName("selected") |
217 | 217 |
218 def onMouseLeave(self, sender): | 218 def onMouseLeave(self, sender): |
219 if isinstance(sender, GroupLabel): | 219 if isinstance(sender, GroupLabel): |
220 jids = self.getGroupData(sender.group, "jids") | 220 jids = self.getGroupData(sender.group, "jids") |
221 for contact in self._contacts_panel: | 221 for contact in self._contacts_panel.getBoxes(): |
222 if contact.jid in jids: | 222 if contact.jid in jids: |
223 contact.label.removeStyleName("selected") | 223 contact.label.removeStyleName("selected") |
224 | 224 |
225 def onAvatarUpdate(self, jid_, hash_, profile): | 225 def onAvatarUpdate(self, jid_, hash_, profile): |
226 """Called on avatar update events | 226 """Called on avatar update events |