Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-09 20:22:41 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-09 20:22:41 (GMT)
commit7900e6c486938692f8ed2ba61fd73d8f5b488246 (patch)
tree314ee0e5fb09231175e1a397a523c6ba83bd3e95 /shell
parentf0c8fe19feda8b06747e3b9aa11c4ac84aead723 (diff)
#1720: Show the owner's buddy menu in the Groups view.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/home/FriendsBox.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/shell/view/home/FriendsBox.py b/shell/view/home/FriendsBox.py
index 39afa0b..6e89025 100644
--- a/shell/view/home/FriendsBox.py
+++ b/shell/view/home/FriendsBox.py
@@ -19,9 +19,12 @@ import random
import hippo
import gobject
+from sugar import profile
from sugar.graphics.spreadlayout import SpreadLayout
from sugar.graphics import units
-from view.home.MyIcon import MyIcon
+
+from shell.model.BuddyModel import BuddyModel
+from view.BuddyIcon import BuddyIcon
from view.home.FriendView import FriendView
class FriendsBox(hippo.CanvasBox):
@@ -35,8 +38,10 @@ class FriendsBox(hippo.CanvasBox):
self._layout = SpreadLayout()
self.set_layout(self._layout)
- self._my_icon = MyIcon(units.LARGE_ICON_SCALE)
- self._layout.add_center(self._my_icon)
+ buddy_model = BuddyModel(key=profile.get_pubkey())
+ self._owner_icon = BuddyIcon(shell, buddy_model)
+ self._owner_icon.props.scale = units.LARGE_ICON_SCALE
+ self._layout.add_center(self._owner_icon)
friends = self._shell.get_model().get_friends()