From a5e9b88892c6402bde5f72a73172e4fbfef0d2fe Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 25 Nov 2009 12:48:06 +0000 Subject: Activate windows when changing to activity view This patch fixes a bug where pressing F4 immediately after starting Sugar does not switch to the Journal. This happened because the Journal has not yet been activated, so when the desktop is hidden in response to pressing F4, there is no active window to take over the display. The journal starts in iconified state. We also have to be careful about propogating correct X event times for the F4 keypress case (this is not an event that GTK+ handles, it comes from KeyGrabber). --- (limited to 'src/jarabe/view/keyhandler.py') diff --git a/src/jarabe/view/keyhandler.py b/src/jarabe/view/keyhandler.py index acbbb04..19a56bb 100644 --- a/src/jarabe/view/keyhandler.py +++ b/src/jarabe/view/keyhandler.py @@ -146,16 +146,16 @@ class KeyHandler(object): active_activity.get_window().close() def handle_zoom_mesh(self, event_time): - shell.get_model().zoom_level = ShellModel.ZOOM_MESH + shell.get_model().set_zoom_level(ShellModel.ZOOM_MESH, event_time) def handle_zoom_group(self, event_time): - shell.get_model().zoom_level = ShellModel.ZOOM_GROUP + shell.get_model().set_zoom_level(ShellModel.ZOOM_GROUP, event_time) def handle_zoom_home(self, event_time): - shell.get_model().zoom_level = ShellModel.ZOOM_HOME + shell.get_model().set_zoom_level(ShellModel.ZOOM_HOME, event_time) def handle_zoom_activity(self, event_time): - shell.get_model().zoom_level = ShellModel.ZOOM_ACTIVITY + shell.get_model().set_zoom_level(ShellModel.ZOOM_ACTIVITY, event_time) def handle_volume_max(self, event_time): self._change_volume(value=_VOLUME_MAX) -- cgit v0.9.1