"Moved" the new console work on a branch.
This commit is contained in:
@@ -36,7 +36,6 @@ 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):
|
||||
@@ -65,8 +64,6 @@ 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):
|
||||
@@ -168,12 +165,6 @@ 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:
|
||||
|
||||
@@ -25,7 +25,6 @@ import gtk
|
||||
from hardware import hardwaremanager
|
||||
from model.shellmodel import ShellModel
|
||||
from sugar._sugaruiext import KeyGrabber
|
||||
import console
|
||||
|
||||
_BRIGHTNESS_STEP = 2
|
||||
_VOLUME_STEP = 10
|
||||
@@ -48,7 +47,6 @@ _actions_table = {
|
||||
'<alt>1' : 'screenshot',
|
||||
'<alt>equal' : 'console',
|
||||
'<alt>0' : 'console',
|
||||
'<alt>9' : 'new_console',
|
||||
'<alt>f' : 'frame',
|
||||
'0x93' : 'frame',
|
||||
'<alt>o' : 'overlay',
|
||||
@@ -147,9 +145,6 @@ class KeyHandler(object):
|
||||
def handle_console(self):
|
||||
gobject.idle_add(self._toggle_console_visibility_cb)
|
||||
|
||||
def handle_new_console(self):
|
||||
self._shell.toggle_console_visibility()
|
||||
|
||||
def handle_frame(self):
|
||||
self._shell.get_frame().notify_key_press()
|
||||
|
||||
@@ -222,5 +217,5 @@ class KeyHandler(object):
|
||||
bus = dbus.SessionBus()
|
||||
proxy = bus.get_object('org.laptop.sugar.Console',
|
||||
'/org/laptop/sugar/Console')
|
||||
console_service = dbus.Interface(proxy, 'org.laptop.sugar.Console')
|
||||
console_service.ToggleVisibility()
|
||||
console = dbus.Interface(proxy, 'org.laptop.sugar.Console')
|
||||
console.ToggleVisibility()
|
||||
|
||||
Reference in New Issue
Block a user