[polari] chatView: Use state flags instead of named color for links



commit 5ee2fa6f7615cd441050da9b0878d80427433459
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Feb 4 10:44:26 2015 +0100

    chatView: Use state flags instead of named color for links
    
    The LINK state flag has replaced the -GtkWidget-link-color property
    since 3.12, and the named color was removed from the theme a while
    ago.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743944

 src/chatView.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 9170e87..1cfa9c4 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -192,11 +192,7 @@ const ChatView = new Lang.Class({
         let selectedColor = context.get_background_color(Gtk.StateFlags.SELECTED);
         context.restore();
 
-        let [found, linkColor] = context.lookup_color("link_color");
-        if (!found) {
-            linkColor = new Gdk.RGBA();
-            linkColor.parse('blue');
-        }
+        let linkColor = context.get_color(Gtk.StateFlags.LINK);
 
         let buffer = this._view.get_buffer();
         let tagTable = buffer.get_tag_table();


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