Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/home/MeshModel.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/home/MeshModel.py')
-rw-r--r--shell/home/MeshModel.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/home/MeshModel.py b/shell/home/MeshModel.py
index b2163ac..2225cc6 100644
--- a/shell/home/MeshModel.py
+++ b/shell/home/MeshModel.py
@@ -1,7 +1,7 @@
import gobject
from sugar.presence.PresenceService import PresenceService
-from ActivityRegistry import ActivityRegistry
+from sugar import conf
class ActivityInfo:
def __init__(self, service):
@@ -27,11 +27,10 @@ class MeshModel(gobject.GObject):
([gobject.TYPE_PYOBJECT]))
}
- def __init__(self, registry):
+ def __init__(self):
gobject.GObject.__init__(self)
self._activities = {}
- self._registry = registry
self._pservice = PresenceService()
self._pservice.connect("service-appeared", self.__service_appeared_cb)
@@ -55,6 +54,7 @@ class MeshModel(gobject.GObject):
self.__check_service(service)
def __check_service(self, service):
- if self._registry.get_activity(service.get_type()) != None:
+ registry = conf.get_activity_registry()
+ if registry.get_activity(service.get_type()) != None:
if not self.has_activity(service.get_activity_id()):
self.add_activity(service)