Fix to follow the new home api

This commit is contained in:
Marco Pesenti Gritti 2007-01-10 15:30:21 +01:00
parent 79bc053795
commit 84d3471613

View File

@ -88,9 +88,9 @@ class BuddyMenu(Menu):
icon = CanvasIcon(icon_name='stock-add') icon = CanvasIcon(icon_name='stock-add')
self.add_action(icon, BuddyMenu.ACTION_MAKE_FRIEND) self.add_action(icon, BuddyMenu.ACTION_MAKE_FRIEND)
activity_id = shell_model.get_current_activity() activity = shell_model.get_home().get_current_activity()
if activity_id != None: if activity != None:
activity_ps = pservice.get_activity(activity_id) activity_ps = pservice.get_activity(activity.get_id())
# FIXME check that the buddy is not in the activity already # FIXME check that the buddy is not in the activity already