Peter Wehrfritz schrieb: >Hi, > >I used ecore_config_boolean_set() and it works as you would expect. But >if you saved it (ecore_config_save()) and start the program again, it >always had the value 0, no matter what you set before you saved. >ecore_config_int_* , however, works perfect. > > I found the bug and attached the diff. I hope it's in the correct format.
peat
--- ecore_config_db.c~ 2005-08-11 13:56:20.000000000 +0200 +++ ecore_config_db.c 2005-08-11 13:56:53.000000000 +0200 @@ -240,7 +240,7 @@ break; case PT_BLN: num = snprintf(buf, sizeof(buf), "%c %i ", (char) type, - (int) ecore_config_int_get(key)); + (int) ecore_config_boolean_get(key)); break; case PT_FLT: num = snprintf(buf, sizeof(buf), "%c %16.16f ", (char) type,