Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view
diff options
context:
space:
mode:
Diffstat (limited to 'shell/view')
-rw-r--r--shell/view/Shell.py9
-rw-r--r--shell/view/keyhandler.py2
2 files changed, 10 insertions, 1 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:
diff --git a/shell/view/keyhandler.py b/shell/view/keyhandler.py
index 373bceb..971c8a6 100644
--- a/shell/view/keyhandler.py
+++ b/shell/view/keyhandler.py
@@ -148,7 +148,7 @@ class KeyHandler(object):
gobject.idle_add(self._toggle_console_visibility_cb)
def handle_new_console(self):
- console.toggle_visibility()
+ self._shell.toggle_console_visibility()
def handle_frame(self):
self._shell.get_frame().notify_key_press()