forked from enlightenment/efl
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:
parent
59f8c14a95
commit
ec310fc5db
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue