diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-21 11:37:02 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-21 11:37:02 (GMT) |
commit | 5623c8a3b19806563c86f007a649b4e59bda0bd2 (patch) | |
tree | f74839023adb845924f70ba7f7c289f1767011fd /sugar | |
parent | 1d98e5f6bf3de6b1a161c7fba863fa0b0bd628ab (diff) |
Change the Activity execute method to add a result boolean (handle/not handled).
When the camera key is pressed the Shell send and command to the active activity,
if that's not handled than it startup org.laptop.CameraActivity.
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/activity/Activity.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py index 0340259..74f940e 100644 --- a/sugar/activity/Activity.py +++ b/sugar/activity/Activity.py @@ -85,9 +85,9 @@ class ActivityDbusService(dbus.service.Object): return self._activity.get_shared() @dbus.service.method(ACTIVITY_INTERFACE, - in_signature="sas", out_signature="") + in_signature="sas", out_signature="b") def execute(self, command, args): - self._activity.execute(command, args) + return self._activity.execute(command, args) class Activity(gtk.Window): """Base Activity class that all other Activities derive from.""" @@ -170,7 +170,7 @@ class Activity(gtk.Window): def execute(self, command, args): """Execute the given command with args""" - pass + return False def __destroy_cb(self, window): if self._bus: |