diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-01-11 10:43:34 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-01-11 10:43:34 (GMT) |
commit | 58f218133bee3e32edc9960e4a7efd4b9fb7df69 (patch) | |
tree | 8a58ba36f5906720d13086ccf15e6a052f71db35 /shell | |
parent | 297381cad771c3ac9c728ae784e8ea9c325184c4 (diff) |
Also slide out the frame on shutdown
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/frame/Frame.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/view/frame/Frame.py b/shell/view/frame/Frame.py index edf31bd..38e6d0e 100644 --- a/shell/view/frame/Frame.py +++ b/shell/view/frame/Frame.py @@ -27,6 +27,7 @@ from view.frame.FriendsBox import FriendsBox from view.frame.PanelWindow import PanelWindow from view.frame.clipboardpanelwindow import ClipboardPanelWindow from view.frame.notificationtray import NotificationTray +from model.ShellModel import ShellModel from sugar.graphics.timeline import Timeline from sugar.graphics.grid import Grid from sugar.graphics.menushell import MenuShell @@ -231,6 +232,13 @@ class Frame: # Left panel panel = self._create_clipboard_panel(grid, 0, 1, 1, 10) + + shell.get_model().connect('notify::state', + self._shell_state_changed_cb) + + def _shell_state_changed_cb(self, model, pspec): + if model.props.state == ShellModel.STATE_SHUTDOWN: + self._timeline.goto('slide_out', True) def _create_clipboard_panel(self, grid, x, y, width, height): [x, y, width, height] = grid.rectangle(x, y, width, height) |