Enlightenment CVS committal Author : handyande Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_config Modified Files: ecore_config.c Log Message: Fix up RGB parsing and the string output - bad someone... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -3 -r1.72 -r1.73 --- ecore_config.c 8 Jan 2006 19:45:11 -0000 1.72 +++ ecore_config.c 18 Jan 2006 12:36:51 -0000 1.73 @@ -339,7 +339,7 @@ } if (val) { - esprintf(&r, "%s:%s=%s", key, e->type, val); + esprintf(&r, "%s:%s=%s", key, _ecore_config_type[e->type], val); free(val); } } @@ -660,6 +660,7 @@ int type; int tmpi; float tmpf; + long tmpl; type = ecore_config_type_guess(key, val); if (type == ECORE_CONFIG_INT || type == ECORE_CONFIG_BLN) @@ -672,6 +673,11 @@ tmpf = atof(val); return ecore_config_typed_set(key, (void *)&tmpf, type); } + else if (type == ECORE_CONFIG_RGB) + { + __ecore_argbstr_to_long(val, &tmpl); + return ecore_config_typed_set(key, (void *)&tmpl, type); + } else return ecore_config_typed_set(key, (void *)val, type); } ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs