From 65bf1372bdc86e6c54a2fdcedd39f17c99c8592f Mon Sep 17 00:00:00 2001 From: alexl Date: Mon, 8 Jan 2007 13:16:10 +0000 Subject: Add fixes for hicolor lookup from Octavio Alvarez Piza --- spec/icon-theme-spec.xml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/spec/icon-theme-spec.xml b/spec/icon-theme-spec.xml index 24ef5b9..7554b0f 100644 --- a/spec/icon-theme-spec.xml +++ b/spec/icon-theme-spec.xml @@ -477,6 +477,11 @@ FindIcon(icon, size) { filename = FindIconHelper(icon, size, user selected theme); if filename != none return filename + + filename = FindIconHelper(icon, size, "hicolor"); + if filename != none + return filename + return LookupFallbackIcon (icon) } FindIconHelper(icon, size, theme) { @@ -486,8 +491,6 @@ FindIconHelper(icon, size, theme) { if theme has parents parents = theme.parents - else if theme != hicolor - parents = [hicolor] for parent in parents { filename = FindIconHelper (icon, size, parent) @@ -579,6 +582,11 @@ FindBestIcon(iconList, size) { filename = FindBestIconHelper(iconList, size, user selected theme); if filename != none return filename + + filename = FindBestIconHelper(iconList, size, "hicolor"); + if filename != none + return filename + for icon in iconList { filename = LookupFallbackIcon (icon) if filename != none @@ -595,8 +603,6 @@ FindBestIconHelper(iconList, size, theme) { if theme has parents parents = theme.parents - else if theme != hicolor - parents = [hicolor] for parent in parents { filename = FindBestIconHelper (iconList, size, parent) @@ -735,6 +741,19 @@ AttachPoints=20,20|40,40|50,10|10,50 Change history + + Version 0.12, 24 December 2006, Octavio Alvarez + + + + + Fixed "hicolor" lookup in the pseudocode, so it works with multiple + parents. + + + + + Version 0.11, 7 February 2006, Alexander Larsson -- cgit