From a748db277c2217bf545e3a9981d80b98079201e6 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Mon, 12 Dec 2016 19:07:08 +0100 Subject: [PATCH] Fix some strange behaviour when clicking on the trough of a scale (i.e. stepping) The previous value gets read, not the current. --- terminatorlib/preferences.glade | 6 +++--- terminatorlib/prefseditor.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/terminatorlib/preferences.glade b/terminatorlib/preferences.glade index c5d42523..8e286f80 100644 --- a/terminatorlib/preferences.glade +++ b/terminatorlib/preferences.glade @@ -903,7 +903,7 @@ 0 False bottom - + 2 @@ -922,7 +922,7 @@ 2 False bottom - + 2 @@ -2813,7 +2813,7 @@ 2 2 bottom - + True diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 85b5c60e..fe25eac5 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -871,7 +871,7 @@ class PrefsEditor: self.config['scrollbar_position'] = value self.config.save() - def on_darken_background_scale_change_value(self, widget, scroll, _value_not_rounded): + def on_darken_background_scale_value_changed(self, widget): """Background darkness setting changed""" value = widget.get_value() # This one is rounded according to the UI. if value > 1.0: @@ -1048,7 +1048,7 @@ class PrefsEditor: self.config['title_transmit_fg_color'] = color2hex(widget) self.config.save() - def on_inactive_color_offset_change_value(self, widget, scroll, _value_not_rounded): + def on_inactive_color_offset_value_changed(self, widget): """Inactive color offset setting changed""" value = widget.get_value() # This one is rounded according to the UI. if value > 1.0: @@ -1059,7 +1059,7 @@ class PrefsEditor: label_widget = guiget('inactive_color_offset_value_label') label_widget.set_text('%d%%' % (int(value * 100))) - def on_handlesize_change_value(self, widget, scroll, _value_not_rounded): + def on_handlesize_value_changed(self, widget): """Handle size changed""" value = widget.get_value() # This one is rounded according to the UI. value = int(value) # Cast to int.