2007-07-24 07:50:26 -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 - Applications"
|
2007-07-24 07:50:26 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
EAPI void *
|
|
|
|
e_modapi_init(E_Module *m)
|
|
|
|
{
|
2010-08-19 10:45:29 -07:00
|
|
|
e_configure_registry_category_add("applications", 20, _("Apps"), NULL,
|
|
|
|
"preferences-applications");
|
|
|
|
e_configure_registry_item_add("applications/new_application", 10,
|
2011-08-27 01:04:34 -07:00
|
|
|
_("Create Launcher"), NULL,
|
2010-08-19 10:45:29 -07:00
|
|
|
"preferences-applications-add",
|
|
|
|
e_int_config_apps_add);
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_add("applications/del_application", 20,
|
|
|
|
_("Delete Personal Launchers"), NULL,
|
|
|
|
"preferences-applications-del",
|
|
|
|
e_int_config_delapps);
|
|
|
|
e_configure_registry_item_add("applications/favorite_applications", 30,
|
2010-08-19 10:45:29 -07:00
|
|
|
_("Favorite Applications"), NULL,
|
2011-06-25 02:33:21 -07:00
|
|
|
"user-bookmarks",
|
|
|
|
e_int_config_apps_favs);
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_add("applications/ibar_applications", 40,
|
2010-08-19 10:45:29 -07:00
|
|
|
_("IBar Applications"), NULL,
|
|
|
|
"preferences-applications-ibar",
|
|
|
|
e_int_config_apps_ibar);
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_add("applications/restart_applications", 50,
|
2010-08-19 10:45:29 -07:00
|
|
|
_("Restart Applications"), NULL,
|
|
|
|
"preferences-applications-restart",
|
|
|
|
e_int_config_apps_restart);
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_add("applications/startup_applications", 60,
|
2010-08-19 10:45:29 -07:00
|
|
|
_("Startup Applications"), NULL,
|
|
|
|
"preferences-applications-startup",
|
|
|
|
e_int_config_apps_startup);
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_add("applications/default_applications", 70,
|
2011-06-25 02:33:21 -07:00
|
|
|
_("Default Applications"), NULL,
|
2011-09-25 06:22:43 -07:00
|
|
|
"preferences-desktop-default-applications",
|
2011-06-25 02:33:21 -07:00
|
|
|
e_int_config_defapps);
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_add("applications/desktop_environments", 80,
|
2011-07-14 01:18:55 -07:00
|
|
|
_("Desktop Environments"), NULL,
|
|
|
|
"preferences-desktop-environments",
|
|
|
|
e_int_config_deskenv);
|
2010-08-19 10:45:29 -07:00
|
|
|
e_configure_registry_category_add("internal", -1, _("Internal"), NULL,
|
|
|
|
"enlightenment/internal");
|
|
|
|
e_configure_registry_item_add("internal/ibar_other", -1, _("IBar Other"),
|
|
|
|
NULL, "preferences-system-windows",
|
|
|
|
e_int_config_apps_ibar_other);
|
2010-04-03 08:37:24 -07:00
|
|
|
|
2007-07-24 07:50:26 -07:00
|
|
|
conf_module = m;
|
2007-07-29 03:24:56 -07:00
|
|
|
e_module_delayed_set(m, 1);
|
2007-07-24 07:50:26 -07:00
|
|
|
return m;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
2010-08-19 10:45:29 -07:00
|
|
|
e_modapi_shutdown(E_Module *m __UNUSED__)
|
2007-07-24 07:50:26 -07:00
|
|
|
{
|
|
|
|
E_Config_Dialog *cfd;
|
2010-08-19 10:45:29 -07:00
|
|
|
|
|
|
|
while ((cfd = e_config_dialog_get("E", "_config_apps_dialog")))
|
|
|
|
e_object_del(E_OBJECT(cfd));
|
2007-07-24 07:50:26 -07:00
|
|
|
e_configure_registry_item_del("internal/ibar_other");
|
|
|
|
e_configure_registry_category_del("internal");
|
2010-04-03 08:37:24 -07:00
|
|
|
e_configure_registry_item_del("applications/favorite_applications");
|
2007-07-24 07:50:26 -07:00
|
|
|
e_configure_registry_item_del("applications/new_application");
|
2011-08-27 01:04:34 -07:00
|
|
|
e_configure_registry_item_del("applications/del_application");
|
2007-07-24 07:50:26 -07:00
|
|
|
e_configure_registry_item_del("applications/ibar_applications");
|
|
|
|
e_configure_registry_item_del("applications/restart_applications");
|
|
|
|
e_configure_registry_item_del("applications/startup_applications");
|
2011-06-25 02:33:21 -07:00
|
|
|
e_configure_registry_item_del("applications/default_applications");
|
2011-07-14 01:18:55 -07:00
|
|
|
e_configure_registry_item_del("applications/desktop_environments");
|
2007-07-24 07:50:26 -07:00
|
|
|
e_configure_registry_category_del("applications");
|
|
|
|
conf_module = NULL;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
EAPI int
|
2010-08-19 10:45:29 -07:00
|
|
|
e_modapi_save(E_Module *m __UNUSED__)
|
2007-07-24 07:50:26 -07:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|