diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-09-30 12:24:03 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-09-30 12:24:03 (GMT) |
commit | ce72600b02aa2235fc9cc161b20ff24bcb5f6703 (patch) | |
tree | 342b360e17646b7326d61857583a33699eb9d664 /shell/view/Shell.py | |
parent | c8b5ab290e1bd96eb6fadac1708a2f14b7da4d70 (diff) |
Make the Shell own the console. Some view changes.
Diffstat (limited to 'shell/view/Shell.py')
-rw-r--r-- | shell/view/Shell.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py index 9d14a2f..e816308 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -36,6 +36,7 @@ from view.frame.frame import Frame from view.keyhandler import KeyHandler from view.home.HomeWindow import HomeWindow from model.shellmodel import ShellModel +from console import Console class Shell(gobject.GObject): def __init__(self, model): @@ -64,6 +65,8 @@ class Shell(gobject.GObject): home_model.connect('pending-activity-changed', self._pending_activity_changed_cb) + self._console = Console(model) + gobject.idle_add(self._start_journal_idle) def _start_journal_idle(self): @@ -165,6 +168,12 @@ class Shell(gobject.GObject): return host return None + def toggle_console_visibility(self): + if self._console.props.visible: + self._console.hide() + else: + self._console.show() + def toggle_chat_visibility(self): act = self.get_current_activity() if not act: |