Set the background type before updating the background tab, so it's actually arranged correctly

This commit is contained in:
Chris Jones 2010-01-22 18:39:09 +00:00
parent 055e6f837b
commit 9ef6122a97
1 changed files with 6 additions and 7 deletions

View File

@ -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')