2 #include "e_mod_main.h"
4 /* actual module specifics */
5 static E_Module *conf_module = NULL;
8 EAPI E_Module_Api e_modapi =
11 "Settings - Input Controls"
15 e_modapi_init(E_Module *m)
17 e_configure_registry_category_add("keyboard_and_mouse", 40, _("Input"),
18 NULL, "preferences-behavior");
20 e_configure_registry_item_add("keyboard_and_mouse/key_bindings", 10,
21 _("Key Bindings"), NULL,
22 "preferences-desktop-keyboard-shortcuts",
23 e_int_config_keybindings);
24 e_configure_registry_item_add("keyboard_and_mouse/mouse_bindings", 20,
25 _("Mouse Bindings"), NULL,
26 "preferences-desktop-mouse",
27 e_int_config_mousebindings);
28 e_configure_registry_item_add("keyboard_and_mouse/acpi_bindings", 30,
29 _("ACPI Bindings"), NULL,
30 "preferences-system-power-management",
31 e_int_config_acpibindings);
33 e_module_delayed_set(m, 1);
38 e_modapi_shutdown(E_Module *m __UNUSED__)
42 while ((cfd = e_config_dialog_get("E", "keyboard_and_mouse/acpi_bindings")))
43 e_object_del(E_OBJECT(cfd));
44 while ((cfd = e_config_dialog_get("E", "keyboard_and_mouse/mouse_bindings")))
45 e_object_del(E_OBJECT(cfd));
46 while ((cfd = e_config_dialog_get("E", "keyboard_and_mouse/key_bindings")))
47 e_object_del(E_OBJECT(cfd));
49 e_configure_registry_item_del("keyboard_and_mouse/acpi_bindings");
50 e_configure_registry_item_del("keyboard_and_mouse/mouse_bindings");
51 e_configure_registry_item_del("keyboard_and_mouse/key_bindings");
53 e_configure_registry_category_del("keyboard_and_mouse");
60 e_modapi_save(E_Module *m __UNUSED__)