Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-26 17:49:41 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-26 17:49:41 (GMT)
commit92e37fd9048ae5a89a65eec1915e588108125d3c (patch)
treee74dd16a6f70bd9444ed03111f3cc58cacf7f592
parentc8fd8ef3d90da0be5c4307ee84771ed28ad8cb1f (diff)
Fix add and remove friends
-rw-r--r--shell/model/Friends.py2
-rw-r--r--shell/view/BuddyMenu.py4
2 files changed, 3 insertions, 3 deletions
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()