diff --git a/shell/Shell.py b/shell/Shell.py index 0dd03794..b949c070 100755 --- a/shell/Shell.py +++ b/shell/Shell.py @@ -66,8 +66,6 @@ class Shell(gobject.GObject): self._screen.connect('window-closed', self.__window_closed_cb) self._screen.connect('active-window-changed', self.__active_window_changed_cb) - self._screen.connect("showing_desktop_changed", - self.__showing_desktop_changed_cb) profile = conf.get_profile() if profile.get_nick_name() == None: @@ -113,15 +111,9 @@ class Shell(gobject.GObject): self._panel_manager = PanelManager(self, self._owner) self._panel_manager.show_and_hide(10) - self.set_zoom_level(sugar.ZOOM_HOME) - def set_console(self, console): self._console = console - def __showing_desktop_changed_cb(self, screen): - if not screen.get_showing_desktop(): - self._zoom_level = sugar.ZOOM_ACTIVITY - def __window_opened_cb(self, screen, window): if window.get_window_type() == wnck.WINDOW_NORMAL: host = ActivityHost(self, window) @@ -203,8 +195,6 @@ class Shell(gobject.GObject): return self._chat_controller def set_zoom_level(self, level): - self._zoom_level = level - if level == sugar.ZOOM_ACTIVITY: self._screen.toggle_showing_desktop(False) else: diff --git a/shell/home/HomeWindow.py b/shell/home/HomeWindow.py index 4e4049c2..b16e51fa 100644 --- a/shell/home/HomeWindow.py +++ b/shell/home/HomeWindow.py @@ -18,7 +18,7 @@ class HomeWindow(gtk.Window): self._view = goocanvas.CanvasView() self._view.set_size_request(gtk.gdk.screen_width(), gtk.gdk.screen_height()) - + self.set_zoom_level(sugar.ZOOM_HOME) model = goocanvas.CanvasModelSimple() self._view.set_model(model)