Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e_modules
Dir : e17/apps/e_modules/src/modules/weather Modified Files: e_mod_main.c e_mod_main.h Log Message: New module api. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_modules/src/modules/weather/e_mod_main.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -3 -r1.22 -r1.23 --- e_mod_main.c 23 Sep 2005 17:36:47 -0000 1.22 +++ e_mod_main.c 24 Sep 2005 13:59:21 -0000 1.23 @@ -61,7 +61,7 @@ static E_Config_DD *conf_edd; static E_Config_DD *conf_face_edd; -E_Module_Api e_module_api = +E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Weather" @@ -72,17 +72,6 @@ { Weather *weather; - if (module->api->version < E_MODULE_API_VERSION) - { - e_error_dialog_show(_("Module API Error"), - _("Error initializing Module: test\n" - "It requires a minimum module API version of: %i.\n" - "The module API advertized by Enlightenment is: %i.\n" - "Aborting module."), - E_MODULE_API_VERSION, module->api->version); - return NULL; - } - weather = _weather_new(); module->config_menu = weather->config_menu; return weather; @@ -116,7 +105,6 @@ int e_modapi_info(E_Module *module) { - module->label = strdup(_("Weather")); module->icon_file = strdup(PACKAGE_LIB_DIR"/e_modules/weather/module_icon.png"); return 1; } =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_modules/src/modules/weather/e_mod_main.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- e_mod_main.h 23 Sep 2005 17:36:47 -0000 1.9 +++ e_mod_main.h 24 Sep 2005 13:59:21 -0000 1.10 @@ -89,7 +89,7 @@ E_Gadman_Client *gmc; }; -extern E_Module_Api e_module_api; +extern E_Module_Api e_modapi; EAPI void *e_modapi_init(E_Module *m); EAPI int e_modapi_shutdown(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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs