Fix type mapping for float in gsettings-schema-convert
authorMatthias Clasen <mclasen@redhat.com>
Wed, 21 Apr 2010 03:40:22 +0000 (23:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 21 Apr 2010 03:40:22 +0000 (23:40 -0400)
Bug 616331.

gio/gsettings-schema-convert

index 597f652..b6b27f0 100755 (executable)
@@ -745,7 +745,7 @@ class XMLSchemaParser:
 
 
 def map_gconf_type_to_variant_type(gconftype, gconfsubtype):
-    typemap = { 'string': 's', 'int': 'i', 'float': 'f', 'bool': 'b', 'list': 'a' }
+    typemap = { 'string': 's', 'int': 'i', 'float': 'd', 'bool': 'b', 'list': 'a' }
     result = typemap[gconftype]
     if gconftype == 'list':
         result = result + typemap[gconfsubtype]