Remove more old activities code

This commit is contained in:
Marco Pesenti Gritti 2006-12-01 22:33:00 +01:00
parent 6169f603e5
commit b5b9d9d5f1
2 changed files with 3 additions and 9 deletions

View File

@ -56,14 +56,8 @@ class ActivityHost:
self._type = self._activity.get_type()
self._gdk_window = gtk.gdk.window_foreign_new(self._xid)
# FIXME Old activity registry support, cleanup
registry = conf.get_activity_registry()
info = registry.get_activity(self._type)
if not info:
registry = shell_model.get_bundle_registry()
info = registry.get_bundle(self._type)
registry = shell_model.get_bundle_registry()
info = registry.get_bundle(self._type)
self._icon_name = info.get_icon()
try:

View File

@ -29,7 +29,7 @@ class ActivityItem(CanvasIcon):
self._activity = activity
def get_bundle_id(self):
return self._activity.get_id()
return self._activity.get_service_name()
class InviteItem(CanvasIcon):
def __init__(self, invite):