From e4be6fc1bacb4ada663a2fb57a6557c6475c9435 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 2 May 2007 22:30:59 -0400 Subject: [PATCH] Fix ps buddy object usage --- shell/view/frame/FriendsBox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/view/frame/FriendsBox.py b/shell/view/frame/FriendsBox.py index b998c516..920bfb1c 100644 --- a/shell/view/frame/FriendsBox.py +++ b/shell/view/frame/FriendsBox.py @@ -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()):