48 lines
1022 B
C
48 lines
1022 B
C
/*
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
*/
|
|
#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 - ACPI Bindings"
|
|
};
|
|
|
|
EAPI void *
|
|
e_modapi_init(E_Module *m)
|
|
{
|
|
e_configure_registry_category_add("system", 1000,
|
|
_("System"), NULL, "preferences-system");
|
|
e_configure_registry_item_add("system/acpi_bindings", 10,
|
|
_("ACPI Bindings"), NULL,
|
|
"preferences-system-power-management",
|
|
e_int_config_acpibindings);
|
|
conf_module = m;
|
|
e_module_delayed_set(m, 1);
|
|
return m;
|
|
}
|
|
|
|
EAPI int
|
|
e_modapi_shutdown(E_Module *m)
|
|
{
|
|
E_Config_Dialog *cfd;
|
|
|
|
if (cfd = e_config_dialog_get("E", "system/acpi_bindings"))
|
|
e_object_del(E_OBJECT(cfd));
|
|
e_configure_registry_item_del("system/acpi_bindings");
|
|
e_configure_registry_category_del("system");
|
|
conf_module = NULL;
|
|
return 1;
|
|
}
|
|
|
|
EAPI int
|
|
e_modapi_save(E_Module *m)
|
|
{
|
|
return 1;
|
|
}
|