diff options
author | Marco 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) |
commit | 19c8532d09fe19d27ef4b6822e0e0ed9e478bf28 (patch) | |
tree | da60a4b1318cdd4de490b79a3f69adedd9f71406 /shell/shellservice.py | |
parent | ba3b8043f3eea0eef9a7d57a9705092681caf405 (diff) |
Ensure activity uniquness in the shell
Diffstat (limited to 'shell/shellservice.py')
-rw-r--r-- | shell/shellservice.py | 9 |
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="") |