diff --git a/shell/Shell.py b/shell/Shell.py index 8d03a7d2..f3236b3a 100755 --- a/shell/Shell.py +++ b/shell/Shell.py @@ -113,10 +113,7 @@ class Shell(gobject.GObject): self.set_zoom_level(sugar.ZOOM_HOME) self._panel_manager = PanelManager(self) - self._panel_manager.show() - - def get_panel_manager(self): - return self._panel_manager + self._panel_manager.show_and_hide(10) def set_console(self, console): self._console = console diff --git a/shell/panel/PanelManager.py b/shell/panel/PanelManager.py index 1d5331ff..fdccf658 100644 --- a/shell/panel/PanelManager.py +++ b/shell/panel/PanelManager.py @@ -1,4 +1,5 @@ import gtk +import gobject from panel.VerbsPanel import VerbsPanel from panel.FriendsPanel import FriendsPanel @@ -27,6 +28,14 @@ class PanelManager: self._left_panel.move(0, size) self._left_panel.resize(size, gtk.gdk.screen_height() - size * 2) + def __hide_timeout_cb(self): + self.hide() + return False + + def show_and_hide(self, seconds): + self.show() + gobject.timeout_add(seconds * 1000, self.__hide_timeout_cb) + def show(self): self._verbs_panel.show() self._friends_panel.show() diff --git a/shell/panel/VerbsPanel.py b/shell/panel/VerbsPanel.py index e0a76759..fe031e05 100644 --- a/shell/panel/VerbsPanel.py +++ b/shell/panel/VerbsPanel.py @@ -72,4 +72,3 @@ class VerbsPanel(Panel): def __activity_button_press_cb(self, view, target, event, activity_id): self._shell.start_activity(activity_id) - self._shell.get_panel_manager().hide()