From 7d987903a3e30b9b65264979f26046c971629e06 Mon Sep 17 00:00:00 2001 From: Andrea Corbellini Date: Fri, 26 Jun 2009 13:12:46 +0200 Subject: [PATCH 1/4] Remove the empty parenthesis in the declaration of TerminatorWindowTitle to fix the compatibility with Python 2.4. --- terminatorlib/terminator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 9fc6224d..c3591c57 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -39,7 +39,7 @@ except: "hide_window is not available.")) pass -class TerminatorWindowTitle(): +class TerminatorWindowTitle: _window = None _appname = APP_NAME.capitalize() text = None From 53f2bcec759ee3e1777647f44e2afdad2b294b88 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 29 Jun 2009 23:51:53 +0100 Subject: [PATCH 2/4] remove notification. Closes LP #393015 --- terminator | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/terminator b/terminator index 5d449e6b..3ffb1a09 100755 --- a/terminator +++ b/terminator @@ -174,14 +174,3 @@ See the following bug report for more details: gtk.main() - try: - import pynotify - pynotify.init(APP_NAME.capitalize()) - icontheme = gtk.IconTheme() - icon = icontheme.lookup_icon(APP_NAME, 48, 0) - notification = pynotify.Notification('Terminator', "I'll be back", icon.get_filename()) - notification.set_urgency(pynotify.URGENCY_LOW) - notification.show() - except: - pass - From b3a156c7865e376890f1870a405bed36975e154d Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 2 Jul 2009 21:30:53 +0100 Subject: [PATCH 3/4] I think this is more correct. the theme_colors setting elsewhere should only apply to font settings, not terminal colours --- terminatorlib/terminatorterm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 27ad6df7..5722d423 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -740,10 +740,10 @@ text/plain # set transparency for the background (image) opacity = 65535 if background_type in ("image", "transparent"): - self._vte.set_background_tint_color (bg_color) + self._vte.set_background_tint_color (self.conf.background_color) self._vte.set_background_saturation(1 - (self.conf.background_darkness)) opacity = int(self.conf.background_darkness * 65535) - dbg ('H9TRANS: Set background tint color to: %s' % bg_color) + dbg ('H9TRANS: Set background tint color to: %s' % self.conf.background_color) dbg ('H9TRANS: Set background saturation to: %s' % (1 - (self.conf.background_darkness))) else: dbg ('H9TRANS: Set background saturation to: 1') From 2bcff19fa3eef78dc3e85eae21d11c381d43e5d0 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 2 Jul 2009 21:35:18 +0100 Subject: [PATCH 4/4] only actually set the colour as a GdkColor --- terminatorlib/terminatorterm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminatorterm.py b/terminatorlib/terminatorterm.py index 5722d423..872ddf0d 100755 --- a/terminatorlib/terminatorterm.py +++ b/terminatorlib/terminatorterm.py @@ -740,7 +740,7 @@ text/plain # set transparency for the background (image) opacity = 65535 if background_type in ("image", "transparent"): - self._vte.set_background_tint_color (self.conf.background_color) + self._vte.set_background_tint_color (gtk.gdk.color_parse (self.conf.background_color)) self._vte.set_background_saturation(1 - (self.conf.background_darkness)) opacity = int(self.conf.background_darkness * 65535) dbg ('H9TRANS: Set background tint color to: %s' % self.conf.background_color)