Rename activity service_name to bundle_id

This commit is contained in:
Marco Pesenti Gritti
2007-10-09 13:15:06 +02:00
parent 57961d17bc
commit 6073a396b3
16 changed files with 62 additions and 50 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ class ActivityModel:
def get_color(self):
return XoColor(self.activity.props.color)
def get_service_name(self):
return self.bundle.service_name
def get_bundle_id(self):
return self.bundle.bundle_id
class MeshModel(gobject.GObject):
__gsignals__ = {
+2 -2
View File
@@ -156,9 +156,9 @@ class HomeActivity(gobject.GObject):
return self._window
def get_type(self):
"""Retrieve activity_info's "service_name" for future reference"""
"""Retrieve the activity bundle id for future reference"""
if self._activity_info:
return self._activity_info.service_name
return self._activity_info.bundle_id
else:
return None
+2 -2
View File
@@ -91,9 +91,9 @@ class ActivitiesTray(hippo.CanvasBox):
while activity_list:
info = activity_list.pop()
name_to_activity[info.service_name] = info
name_to_activity[info.bundle_id] = info
if info.service_name in self._config:
if info.bundle_id in self._config:
known_activities.append(info)
else:
unknown_activities.append(info)
+1 -1
View File
@@ -47,7 +47,7 @@ class ActivityButton(TrayButton, gobject.GObject):
self.setup_rollover_options()
def get_bundle_id(self):
return self._activity_info.service_name
return self._activity_info.bundle_id
def setup_rollover_options(self):
palette = Palette(self._activity_info.name)
+1 -1
View File
@@ -274,7 +274,7 @@ class ActivityView(hippo.CanvasBox):
del self._icons[key]
def _clicked_cb(self, item):
bundle_id = self._model.get_service_name()
bundle_id = self._model.get_bundle_id()
self._shell.join_activity(bundle_id, self._model.get_id())
class MeshBox(hippo.CanvasBox):