Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()