1 /* Setup of default icon theme */
3 #include "e_mod_main.h"
6 wizard_page_init(E_Wizard_Page *pg __UNUSED__)
12 wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
18 wizard_page_show(E_Wizard_Page *pg __UNUSED__)
20 Eina_List *l, *themes = efreet_icon_theme_list_get();
21 Efreet_Icon_Theme *th;
23 const char *selected = NULL;
24 const char *search[] =
36 if (!themes) return 0;
37 for (i = 0; search[i]; i++)
39 EINA_LIST_FOREACH(themes, l, th)
41 if (!strcasecmp(search[i], th->name.internal))
51 if (e_config->icon_theme) eina_stringshare_del(e_config->icon_theme);
52 e_config->icon_theme = eina_stringshare_add(selected);
54 eina_list_free(themes);
55 return 0; /* 1 == show ui, and wait for user, 0 == just continue */
59 wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
65 wizard_page_apply(E_Wizard_Page *pg __UNUSED__)