2007-07-07 20:57:52 -07: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,
|
2008-11-22 00:42:54 -08:00
|
|
|
"Settings - Borders"
|
2007-07-07 20:57:52 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
EAPI void *
|
|
|
|
e_modapi_init(E_Module *m)
|
|
|
|
{
|
2009-03-15 10:41:46 -07:00
|
|
|
e_configure_registry_category_add("appearance", 10, _("Look"), NULL, "preferences-appearance");
|
2009-03-04 18:39:50 -08:00
|
|
|
e_configure_registry_item_add("appearance/borders", 50, _("Borders"), NULL, "preferences-system-windows", e_int_config_borders);
|
2007-07-07 20:57:52 -07:00
|
|
|
e_configure_registry_category_add("internal", -1, _("Internal"), NULL, "enlightenment/internal");
|
2009-03-04 18:39:50 -08:00
|
|
|
e_configure_registry_item_add("internal/borders_border", -1, _("Border"), NULL, "preferences-system-windows", e_int_config_borders_border);
|
2007-07-07 20:57:52 -07:00
|
|
|
conf_module = m;
|
2007-07-29 03:24:56 -07:00
|
|
|
e_module_delayed_set(m, 1);
|
2007-07-07 20:57:52 -07:00
|
|
|
return m;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
|
|
|
e_modapi_shutdown(E_Module *m)
|
|
|
|
{
|
2007-07-07 22:37:05 -07:00
|
|
|
E_Config_Dialog *cfd;
|
2009-12-04 14:37:18 -08:00
|
|
|
|
|
|
|
while ((cfd = e_config_dialog_get("E", "internal/borders_border")))
|
|
|
|
e_object_del(E_OBJECT(cfd));
|
|
|
|
while ((cfd = e_config_dialog_get("E", "appearance/borders")))
|
|
|
|
e_object_del(E_OBJECT(cfd));
|
2007-07-07 20:57:52 -07:00
|
|
|
e_configure_registry_item_del("internal/borders_border");
|
|
|
|
e_configure_registry_category_del("internal");
|
|
|
|
e_configure_registry_item_del("appearance/borders");
|
|
|
|
e_configure_registry_category_del("appearance");
|
|
|
|
conf_module = NULL;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
|
|
|
e_modapi_save(E_Module *m)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|