Don't add already existing paths to theme

SVN revision: 45883
This commit is contained in:
Sebastian Dransfeld 2010-02-04 20:02:56 +00:00
parent eea9a74ebb
commit cb4af1da03
1 changed files with 2 additions and 1 deletions

View File

@ -1153,7 +1153,8 @@ efreet_icon_theme_path_add(Efreet_Icon_Theme *theme, const char *path)
{
if (!theme || !path) return;
theme->paths = eina_list_append(theme->paths, strdup(path));
if (!eina_list_search_unsorted(theme->paths, EINA_COMPARE_CB(strcmp), path))
theme->paths = eina_list_append(theme->paths, strdup(path));
}
/**