Remove duplicate code, mark strict spec

SVN revision: 54579
This commit is contained in:
Sebastian Dransfeld 2010-11-16 08:28:52 +00:00
parent e4d70b8f89
commit 2849f58ca9
1 changed files with 2 additions and 11 deletions

View File

@ -838,6 +838,7 @@ efreet_icon_fallback_icon(const char *icon_name)
}
}
#ifndef STRICT_SPEC
EINA_LIST_FOREACH(xdg_dirs, l, dir)
{
snprintf(path, sizeof(path), "%s/pixmaps", dir);
@ -848,17 +849,7 @@ efreet_icon_fallback_icon(const char *icon_name)
return icon;
}
}
EINA_LIST_FOREACH(xdg_dirs, l, dir)
{
snprintf(path, PATH_MAX, "%s/pixmaps", dir);
icon = efreet_icon_fallback_dir_scan(path, icon_name);
if (icon)
{
efreet_icon_cache_add(NULL, icon_name, 0, icon);
return icon;
}
}
#endif
icon = efreet_icon_fallback_dir_scan("/usr/share/pixmaps", icon_name);
}