[gnome-tweak-tool] Make GSettingsComboEnum values titlecase
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Make GSettingsComboEnum values titlecase
- Date: Wed, 23 Nov 2011 20:01:17 +0000 (UTC)
commit 6f9f9bd4f8e5c0249b1c391001660267cef54058
Author: John Stowers <john stowers gmail com>
Date: Thu Nov 24 08:36:25 2011 +1300
Make GSettingsComboEnum values titlecase
gtweak/widgets.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index edac0f2..9aa0cd2 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -142,7 +142,7 @@ class GSettingsComboEnumTweak(_GSettingsTweak):
value = self.settings.get_string(key_name)
self.settings.connect('changed::'+self.key_name, self._on_setting_changed)
- w = build_combo_box_text(value, *[(v,v) for v in values])
+ w = build_combo_box_text(value, *[(v,v.replace("-"," ").title()) for v in values])
w.connect('changed', self._on_combo_changed)
self.combo = w
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]