Fix rgb defaults and a little indenting

SVN revision: 25572
This commit is contained in:
handyande 2006-09-07 08:40:28 +00:00 committed by handyande
parent c3fde12000
commit 0c6a8ed5dc
1 changed files with 6 additions and 6 deletions

View File

@ -477,20 +477,20 @@ ecore_config_typed_val(Ecore_Config_Prop * e, const void *val, int type)
else else
{ {
if (type == ECORE_CONFIG_INT || type == ECORE_CONFIG_BLN) if (type == ECORE_CONFIG_INT || type == ECORE_CONFIG_BLN)
{ {
e->val = (long) *((int *)val); e->val = (long) *((int *)val);
e->type = type; e->type = type;
} }
else if (type == ECORE_CONFIG_STR || type == ECORE_CONFIG_THM) else if (type == ECORE_CONFIG_STR || type == ECORE_CONFIG_THM)
{ {
if (!(e->ptr = strdup(val))) if (!(e->ptr = strdup(val)))
return ECORE_CONFIG_ERR_OOM; return ECORE_CONFIG_ERR_OOM;
if (e->type == ECORE_CONFIG_NIL) if (e->type == ECORE_CONFIG_NIL)
e->type = type; e->type = type;
} }
else if (type == ECORE_CONFIG_RGB) else if (type == ECORE_CONFIG_RGB)
{ {
e->val = *((long *)val); __ecore_argbstr_to_long((char *)val, &e->val);
e->type = ECORE_CONFIG_RGB; e->type = ECORE_CONFIG_RGB;
} }
else if (type == ECORE_CONFIG_FLT) else if (type == ECORE_CONFIG_FLT)