Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-08-09 16:10:16 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-08-09 16:10:16 (GMT)
commitcff8ffc32895f3e304f843389c7d4a984502727e (patch)
tree1fdf4b73ec4fd5029db78bf8f83806b12f4626a3 /services
parentf00f3e2f8da0549a54f10ef20419ff6e11824685 (diff)
Complete move to external bundle registry.
Diffstat (limited to 'services')
-rw-r--r--services/shell/activityregistryservice.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/services/shell/activityregistryservice.py b/services/shell/activityregistryservice.py
index 60293d4..44c9969 100644
--- a/services/shell/activityregistryservice.py
+++ b/services/shell/activityregistryservice.py
@@ -49,6 +49,15 @@ class ActivityRegistry(dbus.service.Object):
return registry.add_bundle(bundle_path)
@dbus.service.method(_ACTIVITY_REGISTRY_IFACE,
+ in_signature='', out_signature='aa{sv}')
+ def GetActivities(self):
+ result = []
+ registry = bundleregistry.get_registry()
+ for bundle in registry:
+ result.append(self._bundle_to_dict(bundle))
+ return result
+
+ @dbus.service.method(_ACTIVITY_REGISTRY_IFACE,
in_signature='s', out_signature='a{sv}')
def GetActivity(self, service_name):
registry = bundleregistry.get_registry()
@@ -89,7 +98,8 @@ class ActivityRegistry(dbus.service.Object):
return {'name': bundle.get_name(),
'icon': bundle.get_icon(),
'service_name': bundle.get_service_name(),
- 'path': bundle.get_path()}
+ 'path': bundle.get_path(),
+ 'show_launcher': bundle.get_show_launcher()}
def _bundle_added_cb(self, bundle_registry, bundle):
self.ActivityAdded(self._bundle_to_dict(bundle))