forked from enlightenment/enlightenment
e/wizard: check if icon theme cache already exists
SVN revision: 79952
This commit is contained in:
parent
011dfdccf5
commit
6998babefc
|
@ -384,6 +384,17 @@ _e_wizard_check_xdg(void)
|
|||
return 0;
|
||||
}
|
||||
if ((need_xdg_icons) && (!got_icons))
|
||||
{
|
||||
char path[PATH_MAX];
|
||||
|
||||
/* Check if cache already exists */
|
||||
snprintf(path, sizeof(path), "%s/efreet/icon_themes_%s.eet",
|
||||
efreet_cache_home_get(), efreet_hostname_get());
|
||||
if (ecore_file_is_dir(path))
|
||||
{
|
||||
got_icons = EINA_TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Advance within 15 secs if no xdg event */
|
||||
if (!next_timer)
|
||||
|
@ -392,6 +403,7 @@ _e_wizard_check_xdg(void)
|
|||
_e_wizard_next_eval();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
next_can = 1;
|
||||
need_xdg_desktops = EINA_FALSE;
|
||||
need_xdg_icons = EINA_FALSE;
|
||||
|
|
|
@ -17,7 +17,6 @@ wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
|
|||
EAPI int
|
||||
wizard_page_show(E_Wizard_Page *pg __UNUSED__)
|
||||
{
|
||||
/* TODO: Wait until icon theme list is built */
|
||||
Eina_List *l, *themes = efreet_icon_theme_list_get();
|
||||
Efreet_Icon_Theme *th;
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue