diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-16 21:20:22 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-16 21:20:22 (GMT) |
commit | dae3d2be2b99cbbb59a3aff1ab00fb0b8705a3ff (patch) | |
tree | e4d7c9797a46abe43bcbc513287ba5ba4bed0152 /shell/ActivityRegistry.py | |
parent | 47f25f234ee9775b0c6723312b05ca69d3709449 (diff) |
Some work to implement the activity bar
Diffstat (limited to 'shell/ActivityRegistry.py')
-rw-r--r-- | shell/ActivityRegistry.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/ActivityRegistry.py b/shell/ActivityRegistry.py index acf379c..5ff0059 100644 --- a/shell/ActivityRegistry.py +++ b/shell/ActivityRegistry.py @@ -8,6 +8,7 @@ class ActivityModule: def __init__(self, name, activity_id, directory): self._name = name + self._icon = None self._id = activity_id self._directory = directory self._show_launcher = False @@ -20,6 +21,14 @@ class ActivityModule: """Get the activity identifier""" return self._id + def get_icon(self): + """Get the activity icon name""" + return self._icon + + def set_icon(self, icon): + """Set the activity icon name""" + self._icon = icon + def get_directory(self): """Get the path to activity directory.""" return self._directory @@ -97,6 +106,9 @@ class ActivityRegistry: if cp.has_option('Activity', 'show_launcher'): module.set_show_launcher(True) + if cp.has_option('Activity', 'icon'): + module.set_icon(cp.get('Activity', 'icon')) + module.set_default_type(default_type) return True |