From 894fcea9fca5908efb8b4f0edb81f7f2f9f55464 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 11 Apr 2007 19:08:40 +0000 Subject: Remove get_default_type() and bundle default types; obsolete --- (limited to 'shell/view/Shell.py') diff --git a/shell/view/Shell.py b/shell/view/Shell.py index 6d74f29..391657d 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -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): -- cgit v0.9.1