Fix up RGB parsing and the string output - bad someone...

SVN revision: 19890
This commit is contained in:
handyande 2006-01-18 12:36:51 +00:00 committed by handyande
parent a35fb4d4a7
commit 3b4b47eb77
1 changed files with 7 additions and 1 deletions

View File

@ -339,7 +339,7 @@ ecore_config_as_string_get(const char *key)
}
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 @@ ecore_config_set(const char *key, char *val)
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 @@ ecore_config_set(const char *key, char *val)
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);
}