diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 3f9edd2c..9a829d7a 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -545,9 +545,11 @@ class PrefsEditor: self.config['scrollbar_position'] = value self.config.save() - def on_darken_background_scale_change_value(self, widget): + def on_darken_background_scale_change_value(self, widget, scroll, value): """Background darkness setting changed""" - self.config['background_darkness'] = widget.get_value() + # FIXME: 'value' is a float with way too much precision. Round it off + # to 1 significant digit, e.g. 0.9 not 0.89989888413241345 + self.config['background_darkness'] = value self.config.save() def on_background_image_filechooser_file_set(self, widget):