From 92e37fd9048ae5a89a65eec1915e588108125d3c Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 26 Sep 2006 17:49:41 +0000 Subject: Fix add and remove friends --- diff --git a/shell/model/Friends.py b/shell/model/Friends.py index 5048688..85bdff0 100644 --- a/shell/model/Friends.py +++ b/shell/model/Friends.py @@ -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): diff --git a/shell/view/BuddyMenu.py b/shell/view/BuddyMenu.py index 4ad7857..cf6c2f2 100644 --- a/shell/view/BuddyMenu.py +++ b/shell/view/BuddyMenu.py @@ -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() -- cgit v0.9.1