From 71ca9cb8bc5b5cb337b569cf92eedb51f75ed9c1 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 2 Jul 2007 15:49:29 +0200 Subject: [PATCH] Cleanups --- shell/view/Shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/view/Shell.py b/shell/view/Shell.py index 1be2b6bb..7c7d7490 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -57,8 +57,6 @@ class Shell(gobject.GObject): self._home_window = HomeWindow(self) self._home_window.show() - self._zoom_level = ShellModel.ZOOM_HOME - self._model.connect('notify::zoom-level', self._zoom_level_changed_cb) @@ -154,6 +152,9 @@ class Shell(gobject.GObject): self._frame.hide() def set_zoom_level(self, level): + if level == self._model.get_zoom_level(): + return + if level == ShellModel.ZOOM_ACTIVITY: self._screen.toggle_showing_desktop(False) else: