mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Fix type mapping for float in gsettings-schema-convert
Bug 616331.
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user