Fix ps buddy object usage
This commit is contained in:
parent
3f480c1495
commit
e4be6fc1ba
@ -59,14 +59,14 @@ class FriendsBox(hippo.CanvasBox):
|
||||
self._active_activity_changed_cb)
|
||||
|
||||
def add_buddy(self, buddy):
|
||||
if self._buddies.has_key(buddy.get_key()):
|
||||
if self._buddies.has_key(buddy.props.key):
|
||||
return
|
||||
|
||||
model = BuddyModel(buddy=buddy)
|
||||
icon = FriendIcon(self._shell, self._popup_context, model)
|
||||
self.append(icon)
|
||||
|
||||
self._buddies[buddy.get_key()] = icon
|
||||
self._buddies[buddy.props.key] = icon
|
||||
|
||||
def remove_buddy(self, buddy):
|
||||
if not self._buddies.has_key(buddy.get_key()):
|
||||
|
Loading…
Reference in New Issue
Block a user