[glib/new-gsettings] Fix trivial crashes when outputting range/choices in simple format
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] Fix trivial crashes when outputting range/choices in simple format
- Date: Sat, 17 Apr 2010 03:00:13 +0000 (UTC)
commit 461eac0f5885a85f433ab6cd44caf77f2deb4ae8
Author: Vincent Untz <vuntz gnome org>
Date: Fri Apr 16 22:39:00 2010 -0400
Fix trivial crashes when outputting range/choices in simple format
gio/gsettings-schema-convert | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gsettings-schema-convert b/gio/gsettings-schema-convert
index dd5f92f..be4e4d2 100755
--- a/gio/gsettings-schema-convert
+++ b/gio/gsettings-schema-convert
@@ -261,9 +261,9 @@ class GSettingsSchemaKey:
if self.description:
result += '%sDescription: %s\n' % (current_indent, self.description)
if self._has_range_choices():
- result += '%sChoices: %s\n' % ', '.join(self.choices)
+ result += '%sChoices: %s\n' % (current_indent, ', '.join(self.choices))
elif self._has_range_minmax():
- result += '%sRange: %s\n' % '%s..%s' % self._range_minmax
+ result += '%sRange: %s\n' % (current_indent, '%s..%s' % self.range)
return result
def get_xml_node(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]