2007-07-28 23:58:24 -07:00
|
|
|
#include "e.h"
|
|
|
|
#include "e_mod_main.h"
|
|
|
|
|
|
|
|
/* actual module specifics */
|
|
|
|
static E_Module *conf_module = NULL;
|
|
|
|
|
|
|
|
/* module setup */
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Module_Api e_modapi =
|
2007-07-28 23:58:24 -07:00
|
|
|
{
|
|
|
|
E_MODULE_API_VERSION,
|
2008-11-22 00:42:54 -08:00
|
|
|
"Settings - Dialogs"
|
2007-07-28 23:58:24 -07:00
|
|
|
};
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void *
|
2007-07-28 23:58:24 -07:00
|
|
|
e_modapi_init(E_Module *m)
|
|
|
|
{
|
2009-03-15 10:41:46 -07:00
|
|
|
e_configure_registry_category_add("settings", 80, _("Settings"), NULL, "preferences-system");
|
2009-03-04 18:39:50 -08:00
|
|
|
e_configure_registry_item_add("settings/dialogs", 10, _("Dialogs"), NULL, "preferences-system", e_int_config_dialogs);
|
2011-04-30 20:09:10 -07:00
|
|
|
e_configure_registry_item_add("settings/profiles", 50, _("Profiles"), NULL, "preferences-profiles", e_int_config_profiles);
|
2007-07-28 23:58:24 -07:00
|
|
|
conf_module = m;
|
2013-01-13 05:28:56 -08:00
|
|
|
|
2007-07-28 23:58:24 -07:00
|
|
|
return m;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2015-03-18 15:09:09 -07:00
|
|
|
e_modapi_shutdown(E_Module *m EINA_UNUSED)
|
2007-07-28 23:58:24 -07:00
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
2011-04-30 20:09:10 -07:00
|
|
|
while ((cfd = e_config_dialog_get("E", "settings/profiles"))) e_object_del(E_OBJECT(cfd));
|
2009-12-04 14:37:18 -08:00
|
|
|
while ((cfd = e_config_dialog_get("E", "settings/dialogs"))) e_object_del(E_OBJECT(cfd));
|
2011-04-30 20:09:10 -07:00
|
|
|
e_configure_registry_item_del("settings/profiles");
|
2008-11-22 00:42:54 -08:00
|
|
|
e_configure_registry_item_del("settings/dialogs");
|
|
|
|
e_configure_registry_category_del("settings");
|
2007-07-28 23:58:24 -07:00
|
|
|
conf_module = NULL;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int
|
2015-03-18 15:09:09 -07:00
|
|
|
e_modapi_save(E_Module *m EINA_UNUSED)
|
2007-07-28 23:58:24 -07:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|