From 2cc76de6099ec80c095fe2005efaa95a7397610c Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Sat, 9 Jan 2010 22:27:56 +0000 Subject: [PATCH] gtkscale insists on getting float values --- terminatorlib/prefseditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index d099de73..3790d6b2 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -74,7 +74,7 @@ class PrefsEditor: # Terminal separator size termsepsize = self.config['handle_size'] widget = guiget('handlesize') - widget.set_value(termsepsize) + widget.set_value(float(termsepsize)) # Window geometry hints geomhint = self.config['geometry_hinting'] widget = guiget('wingeomcheck') @@ -292,7 +292,7 @@ class PrefsEditor: widget.set_active(self.config['scroll_background']) # Background shading widget = guiget('background_darkness_scale') - widget.set_value(self.config['background_darkness']) + widget.set_value(float(self.config['background_darkness'])) if self.config['background_type'] == 'solid': guiget('solid-radiobutton').set_active(True)