Remove unused methods from the activity services. Cleanups.

This commit is contained in:
Marco Pesenti Gritti
2007-07-03 20:55:46 +02:00
parent 4df052e5de
commit ddecddcb42
6 changed files with 14 additions and 61 deletions
-7
View File
@@ -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
-9
View File
@@ -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