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__)
23 snprintf(buf, sizeof(buf), "%s/def-ibar.txt", e_wizard_dir_get());
24 fin = fopen(buf, "r");
26 e_user_dir_concat_static(buf, "applications/bar/default");
27 ecore_file_mkpath(buf);
28 e_user_dir_concat_static(buf, "applications/bar/default/.order");
32 while (fgets(buf, sizeof(buf), fin))
35 char name[PATH_MAX], buf2[PATH_MAX], *p;
38 if (buf[0] == '#') continue;
40 while (isspace(*p)) p++;
43 n = sscanf(p, "%s", name);
46 while (isspace(*p)) p++;
47 snprintf(buf2, sizeof(buf2), "%s.desktop", name);
48 desk = efreet_util_desktop_file_id_find(buf2);
51 fprintf(f, "%s\n", buf2);
52 efreet_desktop_free(desk);
59 return 0; /* 1 == show ui, and wait for user, 0 == just continue */
63 wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
69 wizard_page_apply(E_Wizard_Page *pg __UNUSED__)