aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-09-23 17:13:47 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-09-23 17:13:47 +0000
commit74f0aa00c799f462086d21ebaae5226ddeb32e26 (patch)
tree0f065c2fb86dc8fec32db01b13afc07906796ca7 /src/modules/temperature
parentMake dialog windows transient, so that they are recognized as dialogs. (diff)
downloadenlightenment-74f0aa00c799f462086d21ebaae5226ddeb32e26.tar.gz
Move module api check to module loader.
SVN revision: 16873
Diffstat (limited to 'src/modules/temperature')
-rw-r--r--src/modules/temperature/e_mod_main.c18
-rw-r--r--src/modules/temperature/e_mod_main.h2
2 files changed, 8 insertions, 12 deletions
diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c
index 80f37e1b7..93ef9668f 100644
--- a/src/modules/temperature/e_mod_main.c
+++ b/src/modules/temperature/e_mod_main.c
@@ -38,23 +38,17 @@ static E_Config_DD *conf_face_edd;
static int temperature_count;
/* public module routines. all modules must have these */
+E_Module_Api e_module_api =
+{
+ E_MODULE_API_VERSION,
+ "Temperature"
+};
+
void *
e_modapi_init(E_Module *m)
{
Temperature *e;
- /* check module api version */
- if (m->api->version < E_MODULE_API_VERSION)
- {
- char buf[4096];
- snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: %s<br>"
- "It requires a minimum module API version of: %i.<br>"
- "The module API advertized by Enlightenment is: %i.<br>"),
- _("Temperature"), E_MODULE_API_VERSION, m->api->version);
-
- e_module_dialog_show(_("Enlightenment Temperature Module"), buf);
- return NULL;
- }
/* actually init temperature */
e = _temperature_new(m);
m->config_menu = e->config_menu;
diff --git a/src/modules/temperature/e_mod_main.h b/src/modules/temperature/e_mod_main.h
index 35b1c43f8..013821c87 100644
--- a/src/modules/temperature/e_mod_main.h
+++ b/src/modules/temperature/e_mod_main.h
@@ -57,6 +57,8 @@ struct _Temperature_Face
E_Gadman_Client *gmc;
};
+extern E_Module_Api e_module_api;
+
EAPI void *e_modapi_init (E_Module *m);
EAPI int e_modapi_shutdown (E_Module *m);
EAPI int e_modapi_save (E_Module *m);