Switch to the new registry
This commit is contained in:
parent
b5b9d9d5f1
commit
2b97505577
@ -29,7 +29,7 @@ class FriendView(hippo.CanvasBox):
|
|||||||
hippo.CanvasBox.__init__(self, **kwargs)
|
hippo.CanvasBox.__init__(self, **kwargs)
|
||||||
|
|
||||||
self._pservice = PresenceService.get_instance()
|
self._pservice = PresenceService.get_instance()
|
||||||
self._activity_registry = conf.get_activity_registry()
|
self._activity_registry = shell.get_model().get_registry()
|
||||||
|
|
||||||
self._buddy = buddy
|
self._buddy = buddy
|
||||||
self._buddy_icon = BuddyIcon(shell, menu_shell, buddy)
|
self._buddy_icon = BuddyIcon(shell, menu_shell, buddy)
|
||||||
@ -53,9 +53,9 @@ class FriendView(hippo.CanvasBox):
|
|||||||
# services like mDNS where activities default services are marked
|
# services like mDNS where activities default services are marked
|
||||||
# somehow.
|
# somehow.
|
||||||
for serv in activity.get_services():
|
for serv in activity.get_services():
|
||||||
act = self._activity_registry.get_activity_from_type(serv.get_type())
|
bundle = self._activity_registry.get_bundle(serv.get_type())
|
||||||
if act:
|
if bundle:
|
||||||
return act.get_icon()
|
return bundle.get_icon()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _remove_activity_icon(self):
|
def _remove_activity_icon(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user