Since service name and bundle id corrisponds, there

is no need to query the register anymore.
This commit is contained in:
Marco Pesenti Gritti
2006-12-01 22:22:09 +01:00
parent 833e7633e9
commit 6bdda47901
2 changed files with 2 additions and 9 deletions
+2 -5
View File
@@ -23,7 +23,6 @@ from sugar.graphics.spreadbox import SpreadBox
from sugar.graphics.snowflakebox import SnowflakeBox
from sugar.graphics.canvasicon import CanvasIcon
from view.BuddyIcon import BuddyIcon
import conf
class ActivityView(SnowflakeBox):
def __init__(self, shell, menu_shell, model):
@@ -52,10 +51,8 @@ class ActivityView(SnowflakeBox):
del self._icons[name]
def _clicked_cb(self, item):
registry = conf.get_activity_registry()
default_type = self._model.get_service().get_type()
bundle = registry.get_activity_from_type(default_type)
self._shell.join_activity(bundle.get_id(), self._model.get_id())
bundle_id = self._model.get_service().get_type()
self._shell.join_activity(bundle_id, self._model.get_id())
class MeshBox(SpreadBox):
def __init__(self, shell, menu_shell):