update for beta release
[framework/uifw/e17.git] / src / modules / wizard / page_130.c
1 /* Setup if we need backlight? */
2 #include "e.h"
3 #include "e_mod_main.h"
4
5 EAPI int
6 wizard_page_init(E_Wizard_Page *pg __UNUSED__)
7 {
8    return 1;
9 }
10
11 EAPI int
12 wizard_page_shutdown(E_Wizard_Page *pg __UNUSED__)
13 {
14    return 1;
15 }
16
17 EAPI int
18 wizard_page_show(E_Wizard_Page *pg __UNUSED__)
19 {
20    int hav_backlight = 0;
21
22    if (e_backlight_exists()) hav_backlight = 1;
23    if (!hav_backlight)
24      {
25         E_Config_Module *em;
26         Eina_List *l;
27         
28         EINA_LIST_FOREACH(e_config->modules, l, em)
29           {
30              if (!em->name) continue;
31              if (!strcmp(em->name, "backlight"))
32                {
33                   e_config->modules = eina_list_remove_list
34                      (e_config->modules, l);
35                   if (em->name) eina_stringshare_del(em->name);
36                   free(em);
37                   break;
38                }
39           }
40         e_config_save_queue();
41      }
42    return 0; /* 1 == show ui, and wait for user, 0 == just continue */
43 }
44
45 EAPI int
46 wizard_page_hide(E_Wizard_Page *pg __UNUSED__)
47 {
48    return 1;
49 }
50
51 EAPI int
52 wizard_page_apply(E_Wizard_Page *pg __UNUSED__)
53 {
54    return 1;
55 }