From d3c2a104dbbfd1bdbb20a90a885420dbce2ee1ce Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 21 Jun 2006 16:10:19 -0400 Subject: [PATCH] Typo --- shell/session/session.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shell/session/session.py b/shell/session/session.py index 2f6eab21..1b5bec62 100644 --- a/shell/session/session.py +++ b/shell/session/session.py @@ -20,6 +20,12 @@ class Session: self._run_activities() + try: + gtk.main() + except KeyboardInterrupt: + print 'Ctrl+C pressed, exiting...' + self.shutdown() + def _run_activities(self): base_dirs = [] @@ -49,12 +55,6 @@ class Session: args = [ 'python', '-m', activity ] pid = os.spawnvp(os.P_NOWAIT, 'python', args) self._activity_processes[activity] = pid - - try: - gtk.main() - except KeyboardInterrupt: - print 'Ctrl+C pressed, exiting...' - self.shutdown() def _shell_close_cb(self, shell): self.shutdown()