diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-18 15:57:41 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-18 15:57:41 (GMT) |
commit | f3fbea70a34ea7e762d0c8057fdb2cbc813bdf6f (patch) | |
tree | 57b4bbe8853538447296bc6e57cfdff4a6d6d712 /shell | |
parent | 54dcb672e563063b590775eb157b3b6c9f9af752 (diff) |
Rework menu positioning logic
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/frame/Frame.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/view/frame/Frame.py b/shell/view/frame/Frame.py index de3091b..64c7585 100644 --- a/shell/view/frame/Frame.py +++ b/shell/view/frame/Frame.py @@ -26,6 +26,7 @@ from view.frame.PanelWindow import PanelWindow from view.frame.notificationtray import NotificationTray from sugar.graphics.timeline import Timeline from sugar.graphics.grid import Grid +from sugar.graphics.menushell import MenuShell class EventFrame(gobject.GObject): __gsignals__ = { @@ -151,6 +152,7 @@ class Frame: # Top panel [menu_shell, root] = self._create_panel(grid, 0, 0, 16, 1) + menu_shell.set_position(MenuShell.BOTTOM) box = ZoomBox(self._shell, menu_shell) @@ -173,6 +175,7 @@ class Frame: # Bottom panel [menu_shell, root] = self._create_panel(grid, 0, 11, 16, 1) + menu_shell.set_position(MenuShell.TOP) box = ActivitiesBox(self._shell) root.append(box, hippo.PACK_FIXED) @@ -182,6 +185,7 @@ class Frame: # Right panel [menu_shell, root] = self._create_panel(grid, 15, 1, 1, 10) + menu_shell.set_position(MenuShell.LEFT) box = FriendsBox(self._shell, menu_shell) root.append(box) |