Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-01-09 15:57:43 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-01-09 15:57:43 (GMT)
commitca4704787e60dd1bb41a4532edc2978038712965 (patch)
treef31a89e5b522ea3a401dc201b84967852e3fff5b /shell
parent1bb37c34de23e0af5fe425a267c6a8c0f226cdd0 (diff)
Work around the unfocusable terminal bug. For some reason I can't open a terminal directly from the key event.
Diffstat (limited to 'shell')
-rw-r--r--shell/view/Shell.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index 2710781..26118b3 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -138,7 +138,7 @@ class Shell(gobject.GObject):
elif key == '<alt>F8':
self._hw_manager.set_display_mode(HardwareManager.B_AND_W_MODE)
elif key == '<alt>=' or key == '<alt>0':
- self._show_console()
+ gobject.idle_add(self._show_console_cb)
elif key == '<shft><alt>F9':
self._frame.notify_key_press()
elif key == '<shft><alt>F10':
@@ -158,7 +158,7 @@ class Shell(gobject.GObject):
box = self._home_window.get_home_box()
box.grab_and_rotate()
- def _show_console(self):
+ def _show_console_cb(self):
bus = dbus.SessionBus()
proxy = bus.get_object('org.laptop.sugar.Console',
'/org/laptop/sugar/Console')