2009-02-25 14:21:46 -08:00
|
|
|
#include "e.h"
|
|
|
|
#include "e_mod_main.h"
|
|
|
|
|
|
|
|
/* actual module specifics */
|
|
|
|
static E_Module *conf_module = NULL;
|
|
|
|
|
|
|
|
/* module setup */
|
|
|
|
EAPI E_Module_Api e_modapi =
|
|
|
|
{
|
|
|
|
E_MODULE_API_VERSION,
|
|
|
|
"Settings - Edge Bindings"
|
|
|
|
};
|
|
|
|
|
|
|
|
EAPI void *
|
|
|
|
e_modapi_init(E_Module *m)
|
|
|
|
{
|
2009-03-15 10:41:46 -07:00
|
|
|
e_configure_registry_category_add("keyboard_and_mouse", 40, _("Input"), NULL, "preferences-behavior");
|
2009-02-25 14:21:46 -08:00
|
|
|
e_configure_registry_item_add("keyboard_and_mouse/edge_bindings", 10, _("Edge Bindings"), NULL, "enlightenment/edges", e_int_config_edgebindings);
|
|
|
|
conf_module = m;
|
|
|
|
e_module_delayed_set(m, 1);
|
|
|
|
return m;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
|
|
|
e_modapi_shutdown(E_Module *m)
|
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
2009-12-04 14:37:18 -08:00
|
|
|
while ((cfd = e_config_dialog_get("E", "keyboard_and_mouse/edge_bindings"))) e_object_del(E_OBJECT(cfd));
|
2009-02-25 14:21:46 -08:00
|
|
|
e_configure_registry_item_del("keyboard_and_mouse/edge_bindings");
|
|
|
|
e_configure_registry_category_del("keyboard_and_mouse");
|
|
|
|
conf_module = NULL;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
|
|
|
e_modapi_save(E_Module *m)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|