[gnome-tweak-tool] Tweaks can override the summary/description



commit ca29cc93511a768920d7d9ff386e97a6552db0d5
Author: John Stowers <john stowers gmail com>
Date:   Fri Aug 5 22:24:40 2011 +1200

    Tweaks can override the summary/description

 gtweak/widgets.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index 1a8e948..facf26b 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -98,8 +98,8 @@ class _GSettingsTweak(Tweak):
         self.key_name = key_name
         self.settings = GSettingsSetting(schema_name, **options)
         Tweak.__init__(self,
-            self.settings.schema_get_summary(key_name),
-            self.settings.schema_get_description(key_name),
+            options.get("summary",self.settings.schema_get_summary(key_name)),
+            options.get("description",self.settings.schema_get_description(key_name)),
             **options)
 
 class GSettingsSwitchTweak(_GSettingsTweak):
@@ -195,8 +195,8 @@ class _GConfTweak(Tweak):
     def __init__(self, key_name, key_type, **options):
         self.gconf = GConfSetting(key_name, key_type)
         Tweak.__init__(self,
-            self.gconf.schema_get_summary(),
-            self.gconf.schema_get_description(),
+            options.get("summary",self.gconf.schema_get_summary()),
+            options.get("description",self.gconf.schema_get_description()),
             **options)
 
 class GConfComboTweak(_GConfTweak):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]