Remove get_default_type() and bundle default types; obsolete

This commit is contained in:
Dan Williams
2007-04-11 15:08:40 -04:00
parent eeb09294d8
commit 894fcea9fc
7 changed files with 9 additions and 42 deletions
+3 -4
View File
@@ -114,19 +114,18 @@ class Shell(gobject.GObject):
# we have a bundle on the system capable of handling
# this activity type
breg = self._model.get_bundle_registry()
bundle = breg.find_by_default_type(bundle_id)
bundle = breg.get_bundle(bundle_id)
if not bundle:
logging.error("Couldn't find activity for type %s" % bundle_id)
return
act_type = bundle.get_service_name()
home_model = self._model.get_home()
home_model.notify_activity_launch(activity_id, act_type)
home_model.notify_activity_launch(activity_id, bundle_id)
handle = ActivityHandle(activity_id)
handle.pservice_id = activity_id
handler = activityfactory.create(act_type, handle)
handler = activityfactory.create(bundle_id, handle)
handler.connect('error', self._join_error_cb, home_model)
def _start_error_cb(self, handler, err, home_model):
+1 -1
View File
@@ -189,7 +189,7 @@ class ActivityView(SnowflakeBox):
del self._icons[key]
def _clicked_cb(self, item):
bundle_id = self._model.get_service().get_type()
bundle_id = self._model.get_service().get_service_name()
self._shell.join_activity(bundle_id, self._model.get_id())
class MeshBox(SpreadBox):