* Fixed garglk_set_reversevideo to use the new way styles are handled.
[projects/chimara/chimara.git] / libchimara / garglk.c
index 6beb20e57c4da3ab4e96da48ab684e5fb5b7ee69..df5c6b35e4f0240289fa1c2bd983b3418ce51b0f 100644 (file)
@@ -184,7 +184,11 @@ garglk_set_zcolors(glui32 fg, glui32 bg)
 static void
 apply_reverse_color(GtkTextTag *tag, gpointer data)
 {
-       g_object_set_data( G_OBJECT(tag), "reverse_color", data );
+       const gchar *tag_name;
+       g_object_get(tag, "name", &tag_name, NULL);
+
+       if( g_str_has_prefix(tag_name, "glk-") )
+               g_object_set_data( G_OBJECT(tag), "reverse_color", data );
 }
 
 /**