From def151b8d6c52879ec3e5f5a4a428f6ec8d05696 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 13 Oct 2004 08:45:47 +0000 Subject: [PATCH] check the type by hand... if declared - otherwise ASSUME its an int. SVN revision: 11856 --- legacy/ecore/src/lib/ecore_config/edb.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_config/edb.c b/legacy/ecore/src/lib/ecore_config/edb.c index 53191768ba..dd87492fc8 100644 --- a/legacy/ecore/src/lib/ecore_config/edb.c +++ b/legacy/ecore/src/lib/ecore_config/edb.c @@ -88,22 +88,19 @@ ecore_config_file_load(char *file) { if (e_db_int_get(db, keys[x], &itmp)) { - /* eh? how can this GUESS a boolean or not from an int? how? */ - /* this only works possibly if its a string!!! */ - /* disable booleans stuff ..*/ -/* - pt = ecore_config_type_guess(keys[x], &itmp); + Ecore_Config_Prop *p; + + pt = PT_INT; + if ((p = ecore_config_get(keys[x]))) pt = p->type; switch (pt) { - case PT_BLN: - ecore_config_boolean_set(keys[x], itmp); - break; - default: - */ - ecore_config_int_set(keys[x], itmp); -/* break; + case PT_BLN: + ecore_config_boolean_set(keys[x], itmp); + break; + default: + ecore_config_int_set(keys[x], itmp); + break; } - */ } else {