e/wizard: check if icon theme cache already exists

SVN revision: 79952
This commit is contained in:
Sebastian Dransfeld 2012-11-30 21:38:08 +00:00
parent 011dfdccf5
commit 6998babefc
2 changed files with 18 additions and 7 deletions

View File

@ -385,12 +385,24 @@ _e_wizard_check_xdg(void)
}
if ((need_xdg_icons) && (!got_icons))
{
/* Advance within 15 secs if no xdg event */
if (!next_timer)
next_timer = ecore_timer_add(7.0, _e_wizard_cb_next_page, NULL);
next_can = 0;
_e_wizard_next_eval();
return 0;
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)
next_timer = ecore_timer_add(7.0, _e_wizard_cb_next_page, NULL);
next_can = 0;
_e_wizard_next_eval();
return 0;
}
}
next_can = 1;
need_xdg_desktops = EINA_FALSE;

View File

@ -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;