summaryrefslogtreecommitdiff
path: root/src/modules/conf_engine/e_mod_main.c
diff options
context:
space:
mode:
authorMiculcy Brian <morlenxus@gmx.net>2007-08-03 22:44:21 +0000
committerMiculcy Brian <morlenxus@gmx.net>2007-08-03 22:44:21 +0000
commit6cd0b24108c0280fb2da89560627dbbbe3112fda (patch)
tree32aec87df875ab4cb61c31ecfb71f54a20ae0b1a /src/modules/conf_engine/e_mod_main.c
parent3bfec3d628548833d9bc13502ce65b2e7b86bfba (diff)
downloadenlightenment-6cd0b24108c0280fb2da89560627dbbbe3112fda.tar.gz
New configuration dialog 'engine'. Only basic mode for now, advanced stuff will follow soon. :)
SVN revision: 31149
Diffstat (limited to 'src/modules/conf_engine/e_mod_main.c')
-rw-r--r--src/modules/conf_engine/e_mod_main.c65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/modules/conf_engine/e_mod_main.c b/src/modules/conf_engine/e_mod_main.c
new file mode 100644
index 0000000000..cbdf226c4d
--- /dev/null
+++ b/src/modules/conf_engine/e_mod_main.c
@@ -0,0 +1,65 @@
+/*
+ * 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,
+ "Configuration - Engine"
+};
+
+EAPI void *
+e_modapi_init(E_Module *m)
+{
+ e_configure_registry_category_add("advanced", 80, _("Advanced"), NULL, "enlightenment/advanced");
+ e_configure_registry_item_add("advanced/engine", 50, _("Engine"), NULL, "enlightenment/engine", e_int_config_engine);
+ conf_module = m;
+ e_module_delayed_set(m, 1);
+ return m;
+}
+
+EAPI int
+e_modapi_shutdown(E_Module *m)
+{
+ E_Config_Dialog *cfd;
+ while ((cfd = e_config_dialog_get("E", "_config_engine_dialog"))) e_object_del(E_OBJECT(cfd));
+ e_configure_registry_item_del("advanced/engine");
+ e_configure_registry_category_del("advanced");
+ conf_module = NULL;
+ return 1;
+}
+
+EAPI int
+e_modapi_save(E_Module *m)
+{
+ return 1;
+}
+
+EAPI int
+e_modapi_about(E_Module *m)
+{
+ e_module_dialog_show(m,
+ _("Enlightenment Configuration Module - Engine"),
+ _("Configuration dialog for engine."));
+ return 1;
+}