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
-4
View File
@@ -382,10 +382,6 @@ class Activity(Window, gtk.Container):
self._share_id = self._pservice.connect("activity-shared", self._internal_share_cb)
self._pservice.share_activity(self)
def execute(self, command, args):
"""Execute the given command with args"""
return False
def _realize_cb(self, window):
wm.set_bundle_id(window.window, self.get_service_name())
wm.set_activity_id(window.window, self._activity_id)
-15
View File
@@ -55,21 +55,6 @@ class ActivityService(dbus.service.Object):
self._activity = activity
@dbus.service.method(_ACTIVITY_INTERFACE)
def share(self):
"""Called by the shell to request the activity to share itself on the network."""
self._activity.share()
@dbus.service.method(_ACTIVITY_INTERFACE)
def get_shared(self):
"""Returns True if the activity is shared on the mesh."""
return self._activity.get_shared()
@dbus.service.method(_ACTIVITY_INTERFACE,
in_signature="sas", out_signature="b")
def execute(self, command, args):
return self._activity.execute(command, args)
@dbus.service.method(_ACTIVITY_INTERFACE)
def set_active(self, active):
logging.debug('ActivityService.set_active: %s.' % active)