Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/frame/FriendsBox.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-01 10:55:10 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-01 10:55:10 (GMT)
commit4aee850af7b3de3dab24aa6cf72a855162e4fddd (patch)
tree8363ae249a4ddebe8d1ddd3e0362d496705139db /shell/view/frame/FriendsBox.py
parentaa5d6af260ce93495fd7bb9d19a094106c331e98 (diff)
Replace Menu for Palette.
Diffstat (limited to 'shell/view/frame/FriendsBox.py')
-rw-r--r--shell/view/frame/FriendsBox.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/shell/view/frame/FriendsBox.py b/shell/view/frame/FriendsBox.py
index edbd0fc..cde51f5 100644
--- a/shell/view/frame/FriendsBox.py
+++ b/shell/view/frame/FriendsBox.py
@@ -23,12 +23,8 @@ from view.BuddyIcon import BuddyIcon
from model.BuddyModel import BuddyModel
class FriendIcon(BuddyIcon):
- def __init__(self, shell, popup_context, buddy):
- BuddyIcon.__init__(self, shell, popup_context, buddy)
- self._popup_context = popup_context
-
- def get_popup_context(self):
- return self._popup_context
+ def __init__(self, shell, buddy):
+ BuddyIcon.__init__(self, shell, buddy)
def prelight(self, enter):
if enter:
@@ -37,10 +33,9 @@ class FriendIcon(BuddyIcon):
self.props.background_color = color.TOOLBAR_BACKGROUND.get_int()
class FriendsBox(hippo.CanvasBox):
- def __init__(self, shell, popup_context):
+ def __init__(self, shell):
hippo.CanvasBox.__init__(self)
self._shell = shell
- self._popup_context = popup_context
self._activity_ps = None
self._joined_hid = -1
self._left_hid = -1
@@ -63,7 +58,7 @@ class FriendsBox(hippo.CanvasBox):
return
model = BuddyModel(buddy=buddy)
- icon = FriendIcon(self._shell, self._popup_context, model)
+ icon = FriendIcon(self._shell, model)
self.append(icon)
self._buddies[buddy.props.key] = icon