From 9ef6122a979c83310580b8ec8f56fb451628cebb Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 22 Jan 2010 18:39:09 +0000 Subject: [PATCH] Set the background type before updating the background tab, so it's actually arranged correctly --- terminatorlib/prefseditor.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/terminatorlib/prefseditor.py b/terminatorlib/prefseditor.py index 0c64e64c..05a103a1 100755 --- a/terminatorlib/prefseditor.py +++ b/terminatorlib/prefseditor.py @@ -362,6 +362,12 @@ class PrefsEditor: ## Background tab # Radio values + if self.config['background_type'] == 'solid': + guiget('solid-radiobutton').set_active(True) + elif self.config['background_type'] == 'image': + guiget('image-radiobutton').set_active(True) + elif self.config['background_type'] == 'transparent': + guiget('transparent-radiobutton').set_active(True) self.update_background_tab() # Background image file if self.config['background_image'] != '': @@ -376,13 +382,6 @@ class PrefsEditor: widget = guiget('background_darkness_scale') widget.set_value(float(self.config['background_darkness'])) - if self.config['background_type'] == 'solid': - guiget('solid-radiobutton').set_active(True) - elif self.config['background_type'] == 'image': - guiget('image-radiobutton').set_active(True) - elif self.config['background_type'] == 'transparent': - guiget('transparent-radiobutton').set_active(True) - ## Scrolling tab # Scrollbar position widget = guiget('scrollbar-position-combobox')