Make bundle registry a singleton. Get the object path from the registry.

This commit is contained in:
Marco Pesenti Gritti
2007-02-21 17:53:44 +01:00
parent f5b13b716e
commit 7db372cc1c
7 changed files with 33 additions and 26 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ from sugar.graphics import units
from sugar.graphics.iconcolor import IconColor
from sugar.graphics.iconbutton import IconButton
from sugar.presence import PresenceService
from sugar.activity import bundleregistry
from sugar import profile
class ActivityButton(IconButton):
@@ -63,7 +64,7 @@ class ActivitiesBox(hippo.CanvasBox):
self._invite_to_item = {}
self._invites = self._shell_model.get_invites()
bundle_registry = self._shell_model.get_bundle_registry()
bundle_registry = bundleregistry.get_registry()
for bundle in bundle_registry:
if bundle.get_show_launcher():
self.add_activity(bundle)