[gedit-plugins] terminal: correctly parse colors. Fixes bug #656082



commit 99636ac49fc159e741c009390d9fa1d316e48265
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Aug 6 19:17:57 2011 +0200

    terminal: correctly parse colors. Fixes bug #656082
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656082

 plugins/terminal/terminal.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index 73f18c4..575b5ec 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -126,12 +126,14 @@ class GeditTerminal(Gtk.Box):
         if not self.profile_settings.get_boolean("use-theme-colors"):
             fg_color = self.profile_settings.get_string("foreground-color")
             if fg_color != "":
-                parsed, fg = Gdk.RGBA().parse (fg_color)
+                fg = Gdk.RGBA()
+                parsed = fg.parse(fg_color)
             bg_color = self.profile_settings.get_string("background-color")
-            if (bg_color != ""):
-                parsed, bg = Gdk.RGBA().parse (bg_color)
+            if bg_color != "":
+                bg = Gdk.RGBA()
+                parsed = bg.parse(bg_color)
         str_colors = self.profile_settings.get_string("palette")
-        if (str_colors != ""):
+        if str_colors != "":
             for str_color in str_colors.split(':'):
                 try:
                     rgba = Gdk.RGBA()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]