diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-01-10 16:12:23 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-01-10 16:12:23 (GMT) |
commit | 6e599ead06e81cf2c9328940fcdbf0e018c10512 (patch) | |
tree | 3fb7fdda1195cc157679fda90287889bd8d3d654 /shell/view | |
parent | 84d34716134a71bfd53af2b16712068556c45881 (diff) |
Toggle console visibility
Diffstat (limited to 'shell/view')
-rw-r--r-- | shell/view/Shell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py index 8a3136c..f687a2b 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>equal' or key == '<alt>0': - gobject.idle_add(self._show_console_cb) + gobject.idle_add(self._toggle_console_visibility_cb) elif key == '<alt>f': self._frame.notify_key_press() elif key == '<alt>o': @@ -158,12 +158,12 @@ class Shell(gobject.GObject): box = self._home_window.get_home_box() box.grab_and_rotate() - def _show_console_cb(self): + def _toggle_console_visibility_cb(self): bus = dbus.SessionBus() proxy = bus.get_object('org.laptop.sugar.Console', '/org/laptop/sugar/Console') - mgr = dbus.Interface(proxy, 'org.laptop.sugar.Console') - mgr.show() + console = dbus.Interface(proxy, 'org.laptop.sugar.Console') + console.toggle_visibility() def _shutdown(self): bus = dbus.SystemBus() |