Get the icon from activity not root

This commit is contained in:
Marco Pesenti Gritti 2007-01-12 21:48:06 +01:00
parent 6971ddb9a4
commit 4c07e090fa

View File

@ -23,8 +23,6 @@ class Bundle:
self._valid = False
def _parse_info(self, info_path):
base_path = os.path.dirname(info_path)
cp = ConfigParser()
cp.read([info_path])
@ -57,7 +55,8 @@ class Bundle:
if gtk.icon_theme_get_default().has_icon(icon):
self._icon = 'theme:' + icon
else:
self._icon = os.path.join(base_path, icon + ".svg")
activity_path = os.path.join(self._path, 'activity')
self._icon = os.path.join(activity_path, icon + ".svg")
if cp.has_option(section, 'activity_version'):
self._activity_version = int(cp.get(section, 'activity_version'))