diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-01 19:21:30 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-01 19:21:30 (GMT) |
commit | 2b7ffe41d9e8160c7bda506efe9ad35971d599df (patch) | |
tree | 3b35d81db14c94327c30a32abbe8a614a56f8c17 /shell/model/homeactivity.py | |
parent | 5cc9a8c42437376ccef2fbe578a637f8ab3396b5 (diff) |
Make bundle_id and activity_id window properties to
avoid races.
Diffstat (limited to 'shell/model/homeactivity.py')
-rw-r--r-- | shell/model/homeactivity.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/model/homeactivity.py b/shell/model/homeactivity.py index f029e15..2a36ae5 100644 --- a/shell/model/homeactivity.py +++ b/shell/model/homeactivity.py @@ -40,7 +40,7 @@ class HomeActivity(gobject.GObject): gobject.PARAM_READWRITE), } - def __init__(self, bundle=None, activity_id=None): + def __init__(self, bundle, activity_id): """Initialise the HomeActivity bundle -- sugar.activity.bundle.Bundle instance, @@ -72,8 +72,6 @@ class HomeActivity(gobject.GObject): def set_service(self, service): self._service = service - if not self._activity_id: - self._activity_id = service.get_id() def get_service(self): """Retrieve the application's sugar introspection service |