[glib] Fix type mapping for float in gsettings-schema-convert
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix type mapping for float in gsettings-schema-convert
- Date: Wed, 21 Apr 2010 03:42:34 +0000 (UTC)
commit 564714bc95a11fdb06206e91f46a713b67be30ae
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 20 23:40:22 2010 -0400
Fix type mapping for float in gsettings-schema-convert
Bug 616331.
gio/gsettings-schema-convert | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettings-schema-convert b/gio/gsettings-schema-convert
index 597f652..b6b27f0 100755
--- a/gio/gsettings-schema-convert
+++ b/gio/gsettings-schema-convert
@@ -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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]