summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-10 20:28:55 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-10 20:28:55 +0000
commit3dba7ec43491cd83fe3e0b31776049af76a9c7df (patch)
tree006b99ed2bd53bcb92f4b112c3793a211b6ae7a4 /legacy/efreet
parent6da5a2edceb39e09daeb2e4a652aca038708dc7b (diff)
efreet: find icons with all extension
If there are icons in inherited themes which have not already found extensions, add these as alternatives. SVN revision: 77800
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/bin/efreet_icon_cache_create.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/legacy/efreet/src/bin/efreet_icon_cache_create.c b/legacy/efreet/src/bin/efreet_icon_cache_create.c
index c1d9d9e18d..b77a8ce70b 100644
--- a/legacy/efreet/src/bin/efreet_icon_cache_create.c
+++ b/legacy/efreet/src/bin/efreet_icon_cache_create.c
@@ -247,8 +247,27 @@ cache_scan_path_dir(Efreet_Icon_Theme *theme,
247 } 247 }
248 else if (icon->theme && strcmp(icon->theme, theme->name.internal)) 248 else if (icon->theme && strcmp(icon->theme, theme->name.internal))
249 { 249 {
250 const char *ext2;
251 int has_ext = 0;
252 unsigned int j;
253 /* Check if we already has this extension */
254 for (i = 0; i < icon->icons_count; ++i)
255 {
256 for (j = 0; j < icon->icons[i]->paths_count; ++j)
257 {
258 ext2 = strrchr(icon->icons[i]->paths[j], '.');
259 if (ext2)
260 {
261 ext2++;
262 has_ext = !strcmp((ext + 1), ext2);
263 if (has_ext) break;
264 }
265 }
266 if (has_ext) break;
267 }
250 /* We got this icon from a parent theme */ 268 /* We got this icon from a parent theme */
251 continue; 269 if (has_ext)
270 continue;
252 } 271 }
253 272
254 /* find if we have the same icon in another type */ 273 /* find if we have the same icon in another type */