check the type by hand... if declared - otherwise ASSUME its an int.
SVN revision: 11856
This commit is contained in:
parent
02e79c381d
commit
def151b8d6
|
@ -88,22 +88,19 @@ ecore_config_file_load(char *file)
|
||||||
{
|
{
|
||||||
if (e_db_int_get(db, keys[x], &itmp))
|
if (e_db_int_get(db, keys[x], &itmp))
|
||||||
{
|
{
|
||||||
/* eh? how can this GUESS a boolean or not from an int? how? */
|
Ecore_Config_Prop *p;
|
||||||
/* this only works possibly if its a string!!! */
|
|
||||||
/* disable booleans stuff ..*/
|
pt = PT_INT;
|
||||||
/*
|
if ((p = ecore_config_get(keys[x]))) pt = p->type;
|
||||||
pt = ecore_config_type_guess(keys[x], &itmp);
|
|
||||||
switch (pt)
|
switch (pt)
|
||||||
{
|
{
|
||||||
case PT_BLN:
|
case PT_BLN:
|
||||||
ecore_config_boolean_set(keys[x], itmp);
|
ecore_config_boolean_set(keys[x], itmp);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
*/
|
ecore_config_int_set(keys[x], itmp);
|
||||||
ecore_config_int_set(keys[x], itmp);
|
break;
|
||||||
/* break;
|
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue