Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_config.c Log Message: - allow there to be no config as that's valid for an app - specifically check for a theme and engine in ewl's config to determine if we have our config or not =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_config.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ewl_config.c 26 Oct 2006 05:25:01 -0000 1.21 +++ ewl_config.c 26 Oct 2006 05:35:58 -0000 1.22 @@ -45,6 +45,11 @@ if (!ewl_config) DRETURN_INT(FALSE, DLEVEL_STABLE); + if ((!ewl_config_string_get(ewl_config, EWL_CONFIG_THEME_NAME)) + || (!ewl_config_string_get(ewl_config, + EWL_CONFIG_ENGINE_NAME))) + DRETURN_INT(FALSE, DLEVEL_STABLE); + DRETURN_INT(TRUE, DLEVEL_STABLE); } @@ -110,12 +115,7 @@ cfg = NEW(Ewl_Config, 1); cfg->app_name = strdup(app_name); - - if (!ewl_config_load(cfg)) - { - FREE(cfg); - cfg = NULL; - } + ewl_config_load(cfg); /* XXX need to hookup to dbus here? */ @@ -596,6 +596,9 @@ /* XXX deal with the colour classes */ /* XXX not sure if this is in the right spot ... */ + /* XXX This is very much the wrong spot for this. This will happen + * on all config inits, we just want this to happen on EWL config + * init ... */ /* update the evas info for the embeds */ if (ewl_embed_list && !ecore_list_is_empty(ewl_embed_list)) { ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs