diff options
Diffstat (limited to 'caribou/settings')
-rw-r--r-- | caribou/settings/setting_types.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/caribou/settings/setting_types.py b/caribou/settings/setting_types.py index c4af2a6..f6a0503 100644 --- a/caribou/settings/setting_types.py +++ b/caribou/settings/setting_types.py @@ -107,8 +107,8 @@ class ValueSetting(Setting): return bool(self.value) @property - def default_value(self): - return "%r" % self.value + def gvariant(self): + return GLib.Variant(self.variant_type, self.value) class BooleanSetting(ValueSetting): variant_type = 'b' @@ -117,13 +117,6 @@ class BooleanSetting(ValueSetting): # Almost anything could be a boolean. return bool(val) - @property - def default_value(self): - if self.value: - return "true" - else: - return "false" - class IntegerSetting(ValueSetting): variant_type = 'i' entry_type = ENTRY_SPIN |