Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/Shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/view/Shell.py')
-rw-r--r--shell/view/Shell.py9
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: