diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-21 16:53:44 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-21 16:53:44 (GMT) |
commit | 7db372cc1cdc2d2c19af83c9566b14fa406a73a2 (patch) | |
tree | 8cce2afe9dd3f4a0447dddb3eed3b9ccacc92d92 /shell/model/homemodel.py | |
parent | f5b13b716e86f18d0d9c624b9381d9d721b4c892 (diff) |
Make bundle registry a singleton. Get the object path from the registry.
Diffstat (limited to 'shell/model/homemodel.py')
-rw-r--r-- | shell/model/homemodel.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/model/homemodel.py b/shell/model/homemodel.py index bc45a0a..ff04dfc 100644 --- a/shell/model/homemodel.py +++ b/shell/model/homemodel.py @@ -21,7 +21,7 @@ import wnck import dbus from model.homeactivity import HomeActivity -from sugar.activity import Activity +from sugar.activity import bundleregistry _ACTIVITY_SERVICE_NAME = "org.laptop.Activity" _ACTIVITY_SERVICE_PATH = "/org/laptop/Activity" @@ -43,11 +43,11 @@ class HomeModel(gobject.GObject): ([gobject.TYPE_PYOBJECT])) } - def __init__(self, bundle_registry): + def __init__(self): gobject.GObject.__init__(self) self._activities = {} - self._bundle_registry = bundle_registry + self._bundle_registry = bundleregistry.get_registry() self._current_activity = None screen = wnck.screen_get_default() |