Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_config


Modified Files:
        edb.c 


Log Message:


check the type by hand... if declared - otherwise ASSUME its an int.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/edb.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- edb.c       13 Oct 2004 07:20:35 -0000      1.25
+++ edb.c       13 Oct 2004 08:45:47 -0000      1.26
@@ -88,22 +88,19 @@
          {
             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
               {




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to