From 23dd4e0b2a26698d558eb2e01f0a52e72b53d27c Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 5 Apr 2010 23:28:03 +0100 Subject: [PATCH] Attempt to use the VTE API more correctly, working around a python bindings bug in vte 0.24 --- terminatorlib/terminal.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 00e84629..658042f7 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -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'):