Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-01-17 12:03:21 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-01-17 12:03:21 (GMT)
commit13aaa36fc6495b0cb593a4783362d75e99d68846 (patch)
treee2c593077d2256377b5390e3367624e7ac67bb00 /src
parentd17bcf48533887905f7ced289c893ea7c70cf460 (diff)
Use the journal icon provided by artwork
and remove it from the data/icons
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/model/shell.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/jarabe/model/shell.py b/src/jarabe/model/shell.py
index 9f6a51f..c418935 100644
--- a/src/jarabe/model/shell.py
+++ b/src/jarabe/model/shell.py
@@ -124,7 +124,14 @@ class Activity(gobject.GObject):
def get_icon_path(self):
"""Retrieve the activity's icon (file) name"""
if self.is_journal():
- return os.path.join(config.data_path, 'icons/activity-journal.svg')
+ icon_theme = gtk.icon_theme_get_default()
+ info = icon_theme.lookup_icon('activity-journal',
+ gtk.ICON_SIZE_SMALL_TOOLBAR, 0)
+ if not info:
+ return None
+ fname = info.get_filename()
+ del info
+ return fname
elif self._activity_info:
return self._activity_info.get_icon()
else: