[caribou] Be compatible with pygobject from before and after the fix for bug #676746.
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [caribou] Be compatible with pygobject from before and after the fix for bug #676746.
- Date: Wed, 5 Sep 2012 09:19:07 +0000 (UTC)
commit de4b50c30b7383be7604f71db42c6db8409a5dcd
Author: Marien Zwart <marien zwart gmail com>
Date: Mon Sep 3 11:58:01 2012 +0200
Be compatible with pygobject from before and after the fix for bug #676746.
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)])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]