From 58f218133bee3e32edc9960e4a7efd4b9fb7df69 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 11 Jan 2007 10:43:34 +0000 Subject: Also slide out the frame on shutdown --- (limited to 'shell') 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) -- cgit v0.9.1