update for beta release
[framework/uifw/e17.git] / src / modules / conf_randr / e_mod_main.c
1 /*
2  * vim:ts=8:sw=3:sts=8:expandtab:cino=>5n-3f0^-2{2
3  */
4 #include "e.h"
5 #include "e_mod_main.h"
6
7 /* actual module specifics */
8 E_Module *conf_randr_module = NULL;
9
10 /* module setup */
11 EAPI E_Module_Api e_modapi =
12 {
13    E_MODULE_API_VERSION,
14    "Settings - Screen Setup"
15 };
16
17 EAPI void *
18 e_modapi_init(E_Module *m)
19 {
20    e_configure_registry_category_add("screen", 30, _("Screen"), NULL, "preferences-desktop-display");
21    e_configure_registry_item_add("screen/randr", 20, _("Screen Setup"), NULL, "preferences-system-screen-resolution", e_int_config_randr);
22    conf_randr_module = m;
23    e_module_delayed_set(m, 1);
24    return m;
25 }
26
27 EAPI int
28 e_modapi_shutdown(E_Module *m __UNUSED__)
29 {
30    E_Config_Dialog *cfd;
31    while ((cfd = e_config_dialog_get("E", "screen/randr")))
32      e_object_del(E_OBJECT(cfd));
33    e_configure_registry_item_del("screen/randr");
34    e_configure_registry_category_del("screen");
35    conf_randr_module = NULL;
36    return 1;
37 }
38
39 EAPI int
40 e_modapi_save(E_Module *m __UNUSED__)
41 {
42    return 1;
43 }
44