Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/shellservice.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-07-20 11:15:11 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-07-20 11:15:11 (GMT)
commit19c8532d09fe19d27ef4b6822e0e0ed9e478bf28 (patch)
treeda60a4b1318cdd4de490b79a3f69adedd9f71406 /shell/shellservice.py
parentba3b8043f3eea0eef9a7d57a9705092681caf405 (diff)
Ensure activity uniquness in the shell
Diffstat (limited to 'shell/shellservice.py')
-rw-r--r--shell/shellservice.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/shellservice.py b/shell/shellservice.py
index c612d6e..5728e44 100644
--- a/shell/shellservice.py
+++ b/shell/shellservice.py
@@ -63,6 +63,15 @@ class ShellService(dbus.service.Object):
bus_name = dbus.service.BusName(_DBUS_SERVICE, bus=bus)
dbus.service.Object.__init__(self, bus_name, _DBUS_PATH)
+ @dbus.service.method(_DBUS_SHELL_IFACE,
+ in_signature="s", out_signature="b")
+ def ActivateActivity(self, activity_id):
+ host = self._shell.get_activity(activity_id)
+ if host:
+ host.present()
+ return True
+
+ return False
@dbus.service.method(_DBUS_SHELL_IFACE,
in_signature="ss", out_signature="")