app: create separate tag lists for IME preedit colors.

In particular, I don't want the preedit foreground colors to be
displayed in the text style editor UI. They are only temporary hints
and should not be taken into account as user-chosen style.
This commit is contained in:
Jehan
2016-06-01 17:34:28 +02:00
parent a86b0cf0a2
commit cd641fa14f
3 changed files with 144 additions and 27 deletions

View File

@ -1465,15 +1465,15 @@ gimp_text_tool_im_preedit_changed (GtkIMContext *context,
if (attr->klass->type == PANGO_ATTR_BACKGROUND)
{
gimp_text_buffer_set_bg_color (text_tool->buffer,
&start, &end,
&color);
gimp_text_buffer_set_preedit_bg_color (text_tool->buffer,
&start, &end,
&color);
}
else
{
gimp_text_buffer_set_color (text_tool->buffer,
&start, &end,
&color);
gimp_text_buffer_set_preedit_color (text_tool->buffer,
&start, &end,
&color);
}
}
break;