Fix a prefs editor guiget() call, and set the background type in the config file

This commit is contained in:
Chris Jones 2010-01-21 20:35:43 +00:00
parent 81e00fca0b
commit e3cbb3e717

View File

@ -378,7 +378,7 @@ class PrefsEditor:
elif self.config['background_type'] == 'image':
guiget('image-radiobutton').set_active(True)
elif self.config['background_type'] == 'transparent':
guiget('trans-radiobutton').set_active(True)
guiget('transparent-radiobutton').set_active(True)
## Scrolling tab
# Scrollbar position
@ -527,6 +527,7 @@ class PrefsEditor:
widget = guiget('transparent-radiobutton')
if widget.get_active() == True:
value = 'transparent'
self.config['background_type'] = value
# Background image
widget = guiget('background-image-filechooser')
self.config['background_image'] = widget.get_filename()