forked from enlightenment/efl
Fix up RGB parsing and the string output - bad someone...
SVN revision: 19890
This commit is contained in:
parent
a35fb4d4a7
commit
3b4b47eb77
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue