Console fixes

This commit is contained in:
Marco Pesenti Gritti 2007-09-30 23:47:16 +02:00
parent 114bad2b55
commit 1be27d4b4a

View File

@ -46,13 +46,15 @@ class Console(gtk.Window):
def _zoom_level_changed_cb(self, shell_model, pspec): def _zoom_level_changed_cb(self, shell_model, pspec):
if shell_model.props.zoom_level == ShellModel.ZOOM_HOME: if shell_model.props.zoom_level == ShellModel.ZOOM_HOME:
self.set_context('home') self.context = 'shell'
self._update_view()
elif shell_model.props.zoom_level == ShellModel.ZOOM_ACTIVITY: elif shell_model.props.zoom_level == ShellModel.ZOOM_ACTIVITY:
activity = self._home_model.get_active_activity() activity = self._home_model.get_active_activity()
self.context = 'activity:' + activity.get_type() self.context = 'activity:' + activity.get_type()
self._update_view() self._update_view()
else: else:
self.set_context('mesh') self.context = 'mesh'
self._update_view()
def _realize_cb(self, widget): def _realize_cb(self, widget):
self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG) self.window.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)