Search for theme directly in hash

If not found directly in hash, use efreet_cache_icon_theme_find

SVN revision: 56916
This commit is contained in:
Sebastian Dransfeld 2011-02-10 14:26:30 +00:00
parent 59f8c14a95
commit ec310fc5db
1 changed files with 6 additions and 4 deletions

View File

@ -754,10 +754,12 @@ efreet_cache_icon_theme_list(void)
{ {
Efreet_Icon_Theme *theme; Efreet_Icon_Theme *theme;
if (!strncmp(keys[i], "__efreet", 8)) continue; if (!strncmp(keys[i], "__efreet", 8)) continue;
/* TODO: This could be done more efficient by checking the theme hash
* directly. */ theme = eina_hash_find(themes, keys[i]);
theme = efreet_cache_icon_theme_find(keys[i]); if (!theme)
if (theme) ret = eina_list_append(ret, theme); theme = efreet_cache_icon_theme_find(keys[i]);
if (theme && theme != NON_EXISTING)
ret = eina_list_append(ret, theme);
} }
free(keys); free(keys);
return ret; return ret;