diff options
author | Marien Zwart <marien.zwart@gmail.com> | 2012-09-03 11:58:01 +0200 |
---|---|---|
committer | Alejandro PiƱeiro <apinheiro@igalia.com> | 2012-09-05 11:17:21 +0200 |
commit | de4b50c30b7383be7604f71db42c6db8409a5dcd (patch) | |
tree | ac3cd7cad047a7ee40271c0b9dfce7bb7e1e9ff0 | |
parent | 437839910b8e2da686aaf3953469fdaeaa3bf240 (diff) | |
download | caribou-de4b50c30b7383be7604f71db42c6db8409a5dcd.tar.gz |
Be compatible with pygobject from before and after the fix for bug #676746.
-rwxr-xr-x | tools/make_schema.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/make_schema.py b/tools/make_schema.py index c75d34c..cd255d6 100755 --- a/tools/make_schema.py +++ b/tools/make_schema.py @@ -56,9 +56,11 @@ class SchemasMaker: key.setAttribute('name', setting.gsettings_key) key.setAttribute('type', setting.variant_type) schemalist.appendChild(key) + printfunc = getattr(setting.gvariant, 'print_', None) + if printfunc is None: + printfunc = getattr(setting.gvariant, 'print') self._append_children_element_value_pairs( - doc, key, [('default', - getattr(setting.gvariant, "print_")(False)), + doc, key, [('default', printfunc(False)), ('_summary', setting.short_desc), ('_description', setting.long_desc)]) |