2007-07-15 17:45:58 -07:00
|
|
|
/*
|
|
|
|
* 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,
|
2008-11-22 00:42:54 -08:00
|
|
|
"Settings - Profiles"
|
2007-07-15 17:45:58 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
EAPI void *
|
|
|
|
e_modapi_init(E_Module *m)
|
|
|
|
{
|
2008-11-22 00:42:54 -08:00
|
|
|
e_configure_registry_category_add("settings", 80, _("Settings"),
|
2009-03-15 10:41:46 -07:00
|
|
|
NULL, "preferences-system");
|
2008-11-22 00:42:54 -08:00
|
|
|
e_configure_registry_item_add("settings/profiles", 50, _("Profiles"),
|
2009-03-15 10:41:46 -07:00
|
|
|
NULL, "preferences-profiles",
|
2007-08-12 17:08:59 -07:00
|
|
|
e_int_config_profiles);
|
2007-07-15 17:45:58 -07:00
|
|
|
conf_module = m;
|
2007-07-29 03:24:56 -07:00
|
|
|
e_module_delayed_set(m, 1);
|
2007-07-15 17:45:58 -07:00
|
|
|
return m;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
|
|
|
e_modapi_shutdown(E_Module *m)
|
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
2007-08-12 17:08:59 -07:00
|
|
|
|
2008-09-21 08:27:08 -07:00
|
|
|
while ((cfd = e_config_dialog_get("E", "_config_profiles_dialog")))
|
2007-08-12 17:08:59 -07:00
|
|
|
e_object_del(E_OBJECT(cfd));
|
2008-11-22 00:42:54 -08:00
|
|
|
e_configure_registry_item_del("settings/profiles");
|
|
|
|
e_configure_registry_category_del("settings");
|
2007-07-15 17:45:58 -07:00
|
|
|
conf_module = NULL;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
|
|
|
e_modapi_save(E_Module *m)
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|