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 );
}
/**
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
/* Place the default text tags in the textbuffer's tag table */
- g_hash_table_foreach(glk_data->styles->text_buffer, style_add_tag_to_textbuffer, gtk_text_buffer_get_tag_table(buffer));
+ g_hash_table_foreach(glk_data->styles->text_buffer, style_copy_tag_to_textbuffer, gtk_text_buffer_get_tag_table(buffer));
/* Copy the override text tags to the textbuffers's tag table */
g_hash_table_foreach(glk_data->glk_styles->text_buffer, style_copy_tag_to_textbuffer, gtk_text_buffer_get_tag_table(buffer));
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
/* Place the default text tags in the textbuffer's tag table */
- g_hash_table_foreach(glk_data->styles->text_grid, style_add_tag_to_textbuffer, gtk_text_buffer_get_tag_table(buffer));
+ g_hash_table_foreach(glk_data->styles->text_grid, style_copy_tag_to_textbuffer, gtk_text_buffer_get_tag_table(buffer));
/* Copy the current text tags to the textbuffers's tag table */
g_hash_table_foreach(glk_data->glk_styles->text_grid, style_copy_tag_to_textbuffer, gtk_text_buffer_get_tag_table(buffer));