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
1 changed files with 2 additions and 1 deletions

View File

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