Commit a6d7dc23 authored by Florian Müllner's avatar Florian Müllner
Browse files

chatView: Guard calls to gtk_style_context_get_color()

Commit fe51ac273c8 changed the fallback behavior when the looked up
state mismatches the actual state; as a result, the lookup may now
trigger the GtkStyleContext::changed signal - and as we happen to do
the lookup from a ::changed handler, we set off infinite recursion
with the expected fatal consequences.
Prevent this by guarding the lookup with a save()/restore() pair.
parent d465a54c
......@@ -189,8 +189,10 @@ const ChatView = new Lang.Class({
let dimColor = context.get_color(Gtk.StateFlags.NORMAL);
let linkColor = context.get_color(Gtk.StateFlags.LINK);
this._activeNickColor = context.get_color(Gtk.StateFlags.LINK);
let desaturatedNickColor = ( + +
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment