Fix a prefs editor guiget() call, and set the background type in the config file
This commit is contained in:
parent
81e00fca0b
commit
e3cbb3e717
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue