Fix type mapping for float in gsettings-schema-convert

Bug 616331.
This commit is contained in:
Matthias Clasen 2010-04-20 23:40:22 -04:00
parent afff087785
commit 564714bc95

View File

@ -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]