Git init
[platform/core/uifw/e17.git] / src / modules / conf_edgebindings / e_mod_main.c
1 #include "e.h"
2 #include "e_mod_main.h"
3
4 /* actual module specifics */
5 static E_Module *conf_module = NULL;
6
7 /* module setup */
8 EAPI E_Module_Api e_modapi =
9 {
10    E_MODULE_API_VERSION,
11      "Settings - Edge Bindings"
12 };
13
14 EAPI void *
15 e_modapi_init(E_Module *m)
16 {
17    e_configure_registry_category_add("keyboard_and_mouse", 40, _("Input"), 
18                                      NULL, "preferences-behavior");
19    e_configure_registry_item_add("keyboard_and_mouse/edge_bindings", 10, 
20                                  _("Edge Bindings"), NULL, 
21                                  "enlightenment/edges", 
22                                  e_int_config_edgebindings);
23    conf_module = m;
24    e_module_delayed_set(m, 1);
25    return m;
26 }
27
28 EAPI int
29 e_modapi_shutdown(E_Module *m __UNUSED__)
30 {
31    E_Config_Dialog *cfd;
32
33    while ((cfd = e_config_dialog_get("E", "keyboard_and_mouse/edge_bindings"))) 
34      e_object_del(E_OBJECT(cfd));
35    e_configure_registry_item_del("keyboard_and_mouse/edge_bindings");
36    e_configure_registry_category_del("keyboard_and_mouse");
37    conf_module = NULL;
38    return 1;
39 }
40
41 EAPI int
42 e_modapi_save(E_Module *m __UNUSED__)
43 {
44    return 1;
45 }