Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-08-20 12:49:17 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-08-20 12:49:17 (GMT)
commit33094dfa504eb3279d52b0fbcd207d4a9faed09f (patch)
tree0c0ab29cd8bed01e31f95ed949fab5a58cc23ec9 /shell
parenta8d6ab307956bda3dd2837a3cde686b3025a3ba7 (diff)
* #2012: Fix palette position on the left frame panel. (marco)
Diffstat (limited to 'shell')
-rw-r--r--shell/view/frame/FriendsBox.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/shell/view/frame/FriendsBox.py b/shell/view/frame/FriendsBox.py
index 562c042..30f5963 100644
--- a/shell/view/frame/FriendsBox.py
+++ b/shell/view/frame/FriendsBox.py
@@ -16,22 +16,29 @@
import hippo
+from sugar.graphics.palette import Palette
from sugar.graphics.canvasicon import CanvasIcon
from sugar.graphics import style
from sugar.presence import presenceservice
+
from view.BuddyIcon import BuddyIcon
from model.BuddyModel import BuddyModel
+from view.frame.frameinvoker import FrameCanvasInvoker
class FriendIcon(BuddyIcon):
def __init__(self, shell, buddy):
BuddyIcon.__init__(self, shell, buddy)
- self.get_palette().set_group_id('frame')
+
+ palette = self.get_palette()
+ palette.set_group_id('frame')
+ palette.props.position = Palette.AROUND
+ palette.props.invoker = FrameCanvasInvoker(self)
def prelight(self, enter):
if enter:
self.props.background_color = style.COLOR_BLACK.get_int()
else:
- self.props.background_color = style.COLOR_TOOLBAR.GREY.get_int()
+ self.props.background_color = style.COLOR_TOOLBAR_GREY.get_int()
class FriendsBox(hippo.CanvasBox):
def __init__(self, shell):