aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature/e_mod_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/temperature/e_mod_main.c')
-rw-r--r--src/modules/temperature/e_mod_main.c18
1 files changed, 6 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;