From 13aaa36fc6495b0cb593a4783362d75e99d68846 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Sat, 17 Jan 2009 12:03:21 +0000 Subject: Use the journal icon provided by artwork and remove it from the data/icons --- (limited to 'src') 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: -- cgit v0.9.1