Attempt to use the VTE API more correctly, working around a python bindings bug in vte 0.24

This commit is contained in:
Chris Jones 2010-04-05 23:28:03 +01:00
parent 21885c424f
commit 23dd4e0b2a
1 changed files with 6 additions and 1 deletions

View File

@ -589,7 +589,12 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
self.vte.set_background_image_file(self.config['background_image'])
self.vte.set_scroll_background(self.config['scroll_background'])
else:
self.vte.set_background_image_file('')
try:
self.vte.set_background_image(None)
except TypeError:
# FIXME: I think this is only necessary because of
# https://bugzilla.gnome.org/show_bug.cgi?id=614910
pass
self.vte.set_scroll_background(False)
if background_type in ('image', 'transparent'):