Adapt to BuddyModel constructor change

This commit is contained in:
Marco Pesenti Gritti 2006-09-25 19:15:23 +02:00
parent 2ac1bf7302
commit 2ad9696c87

View File

@ -25,7 +25,8 @@ class RightPanel(CanvasBox):
shell.connect('activity-changed', self.__activity_changed_cb)
def add(self, buddy):
icon = BuddyIcon(self._shell, self._menu_shell, BuddyModel(buddy))
model = BuddyModel(buddy=buddy)
icon = BuddyIcon(self._shell, self._menu_shell, model)
icon.set_menu_strategy(MenuStrategy())
self.set_constraints(icon, 5, 5)
self.add_child(icon)