Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/view/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jarabe/view/shell.py')
-rw-r--r--src/jarabe/view/shell.py65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/jarabe/view/shell.py b/src/jarabe/view/shell.py
deleted file mode 100644
index 8073b94..0000000
--- a/src/jarabe/view/shell.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright (C) 2006-2007 Red Hat, Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-import logging
-
-import gobject
-import gtk
-import wnck
-
-from jarabe.model import shell
-
-class Shell(gobject.GObject):
- def __init__(self):
- gobject.GObject.__init__(self)
-
- self._model = shell.get_model()
- self._screen = wnck.screen_get_default()
- self._screen_rotation = 0
-
- from jarabe.view.keyhandler import KeyHandler
- self._key_handler = KeyHandler()
-
- from jarabe.frame import frame
- self._frame = frame.get_instance()
-
- from jarabe.desktop.homewindow import HomeWindow
- self.home_window = HomeWindow()
- self.home_window.show()
-
- def get_frame(self):
- return self._frame
-
- def set_zoom_level(self, level):
- if level == self._model.get_zoom_level():
- logging.debug('Already in the level %r' % level)
- return
-
- if level == shell.ShellModel.ZOOM_ACTIVITY:
- active_activity = self._model.get_active_activity()
- active_activity.get_window().activate(gtk.get_current_event_time())
- else:
- self._model.set_zoom_level(level)
- self._screen.toggle_showing_desktop(True)
-
-_instance = None
-
-def get_instance():
- global _instance
- if not _instance:
- _instance = Shell()
- return _instance
-