Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibar


Modified Files:
        e_mod_main.c e_mod_main.h 


Log Message:
Move module api check to module loader.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -3 -r1.72 -r1.73
--- e_mod_main.c        22 Sep 2005 18:17:17 -0000      1.72
+++ e_mod_main.c        23 Sep 2005 17:13:47 -0000      1.73
@@ -110,23 +110,17 @@
 static void    _ibar_drag_cb_intercept_resize(void *data, Evas_Object *o, 
Evas_Coord w, Evas_Coord h);
 
 /* public module routines. all modules must have these */
+E_Module_Api e_module_api = 
+{
+   E_MODULE_API_VERSION,
+   "IBar"
+};
+
 void *
 e_modapi_init(E_Module *m)
 {
    IBar *ib;
 
-   /* 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>"), 
-                                  _("IBar"), E_MODULE_API_VERSION, 
m->api->version);
-
-       e_module_dialog_show(_("Enlightenment IBar Module"), buf);
-       return NULL;
-     }
    /* actually init ibar */
    ib = _ibar_new();
    m->config_menu = ib->config_menu;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- e_mod_main.h        26 Jul 2005 11:03:36 -0000      1.20
+++ e_mod_main.h        23 Sep 2005 17:13:47 -0000      1.21
@@ -91,6 +91,8 @@
    unsigned char  raise_on_hilight : 1;
 };
 
+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);




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to