Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-12-01 22:09:02 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-12-01 22:09:02 (GMT)
commit518d2d61d0a2e48fb77fd92ee1466e6a5887d137 (patch)
tree90cd034455815bae6dd854301972afeba3391eec /shell/view
parentba5d1b480430860949ff57fdb4a37bb28fc2ef4e (diff)
Remove unused old registry code
Diffstat (limited to 'shell/view')
-rw-r--r--shell/view/ActivityHost.py1
-rw-r--r--shell/view/home/FriendView.py6
2 files changed, 2 insertions, 5 deletions
diff --git a/shell/view/ActivityHost.py b/shell/view/ActivityHost.py
index 65e2ac0..a7e177d 100644
--- a/shell/view/ActivityHost.py
+++ b/shell/view/ActivityHost.py
@@ -17,7 +17,6 @@
import gtk
import dbus
-import conf
from sugar import profile
from sugar.activity import Activity
from sugar.presence import PresenceService
diff --git a/shell/view/home/FriendView.py b/shell/view/home/FriendView.py
index e3343f8..2b5cf7c 100644
--- a/shell/view/home/FriendView.py
+++ b/shell/view/home/FriendView.py
@@ -21,15 +21,12 @@ from view.BuddyIcon import BuddyIcon
from sugar.graphics.canvasicon import CanvasIcon
from sugar.graphics import style
from sugar.presence import PresenceService
-import conf
-
class FriendView(hippo.CanvasBox):
def __init__(self, shell, menu_shell, buddy, **kwargs):
hippo.CanvasBox.__init__(self, **kwargs)
self._pservice = PresenceService.get_instance()
- self._activity_registry = shell.get_model().get_registry()
self._buddy = buddy
self._buddy_icon = BuddyIcon(shell, menu_shell, buddy)
@@ -52,8 +49,9 @@ class FriendView(hippo.CanvasBox):
# FIXME: do something better here; we probably need to use "flagship"
# services like mDNS where activities default services are marked
# somehow.
+ activity_registry = shell.get_model().get_bundle_registry()
for serv in activity.get_services():
- bundle = self._activity_registry.get_bundle(serv.get_type())
+ bundle = activity_registry.get_bundle(serv.get_type())
if bundle:
return bundle.get_icon()
return None