diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-03 14:31:32 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-03 14:31:32 (GMT) |
commit | e14aa30f0720289c79176a5d55b6c04ac9ec18cc (patch) | |
tree | 36ca90d8fdc66eb449bc3b2f008d1309d663db75 /shell/view/BuddyIcon.py | |
parent | a951b36347bfb5350c4c6031ba1126c25b94f44d (diff) |
Port mesh and friends view to hippo, needs work
Diffstat (limited to 'shell/view/BuddyIcon.py')
-rw-r--r-- | shell/view/BuddyIcon.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/view/BuddyIcon.py b/shell/view/BuddyIcon.py index f6386e0..8f875c9 100644 --- a/shell/view/BuddyIcon.py +++ b/shell/view/BuddyIcon.py @@ -1,4 +1,4 @@ -from sugar.canvas.MenuIcon import MenuIcon +from sugar.graphics.menuicon import MenuIcon from view.BuddyMenu import BuddyMenu class BuddyIcon(MenuIcon): @@ -8,11 +8,11 @@ class BuddyIcon(MenuIcon): self._shell = shell self._buddy = buddy - self._buddy.connect('appeared', self.__buddy_presence_change_cb) - self._buddy.connect('disappeared', self.__buddy_presence_change_cb) - self._buddy.connect('color-changed', self.__buddy_presence_change_cb) + self._buddy.connect('appeared', self._buddy_presence_change_cb) + self._buddy.connect('disappeared', self._buddy_presence_change_cb) + self._buddy.connect('color-changed', self._buddy_presence_change_cb) - def __buddy_presence_change_cb(self, buddy, color=None): + def _buddy_presence_change_cb(self, buddy, color=None): # Update the icon's color when the buddy comes and goes self.set_property('color', buddy.get_color()) |