forked from enlightenment/efl
Remove duplicate code, mark strict spec
SVN revision: 54579
This commit is contained in:
parent
e4d70b8f89
commit
2849f58ca9
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue