Fix add and remove friends

This commit is contained in:
Marco Pesenti Gritti 2006-09-26 19:49:41 +02:00
parent c8fd8ef3d9
commit 92e37fd904
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class Friends(gobject.GObject):
def make_friend(self, buddy):
if not self.has_buddy(buddy):
self.add_friend(BuddyModel(buddy))
self.add_friend(BuddyModel(buddy=buddy))
self.save()
def remove(self, buddy_info):

View File

@ -53,10 +53,10 @@ class BuddyMenu(Menu):
friends = shell_model.get_friends()
if friends.has_buddy(self._buddy):
icon = IconItem(icon_name='stock-add')
icon = IconItem(icon_name='stock-remove')
self.add_action(icon, BuddyMenu.ACTION_REMOVE_FRIEND)
else:
icon = IconItem(icon_name='stock-remove')
icon = IconItem(icon_name='stock-add')
self.add_action(icon, BuddyMenu.ACTION_MAKE_FRIEND)
activity_id = shell_model.get_current_activity()