Remove unused methods from the activity services. Cleanups.
This commit is contained in:
@@ -37,7 +37,6 @@ class ActivityHost:
|
||||
def __init__(self, model):
|
||||
self._model = model
|
||||
self._window = model.get_window()
|
||||
self._activity = model.get_service()
|
||||
self._gdk_window = gtk.gdk.window_foreign_new(self.get_xid())
|
||||
|
||||
try:
|
||||
@@ -62,12 +61,6 @@ class ActivityHost:
|
||||
def get_model(self):
|
||||
return self._model
|
||||
|
||||
def execute(self, command, args):
|
||||
return self._activity.execute(command, dbus.Array(args))
|
||||
|
||||
def share(self):
|
||||
self._activity.share(ignore_reply=True)
|
||||
|
||||
def invite(self, buddy):
|
||||
pass
|
||||
|
||||
|
||||
@@ -49,7 +49,6 @@ _actions_table = {
|
||||
'0x93' : 'frame',
|
||||
'<alt>o' : 'overlay',
|
||||
'0xE0' : 'overlay',
|
||||
'0xDC' : 'camera',
|
||||
'0x7C' : 'shutdown',
|
||||
'<alt><shift>s' : 'shutdown',
|
||||
'0xEB' : 'rotate',
|
||||
@@ -149,14 +148,6 @@ class KeyHandler(object):
|
||||
def handle_overlay(self):
|
||||
self._shell.toggle_chat_visibility()
|
||||
|
||||
def handle_camera(self):
|
||||
current_activity = self._shell.get_current_activity()
|
||||
if current_activity:
|
||||
if current_activity.execute('camera', []):
|
||||
return
|
||||
|
||||
self._shell.start_activity('org.laptop.CameraActivity')
|
||||
|
||||
def handle_shutdown(self):
|
||||
model = self._shell.get_model()
|
||||
model.props.state = ShellModel.STATE_SHUTDOWN
|
||||
|
||||
Reference in New Issue
Block a user