GNOME Bugzilla – Bug 692766
textlayout: respect preedit color attribute
Last modified: 2013-01-31 02:27:45 UTC
Since GTK3, the background/foreground attributes of IM preedit text are ignored on GtkTextView, not on GtkEntry. Test case: 1. enable ibus-anthy on "Entry Buffer" example on gtk3-demo 2. type "kyouhaiitenkidesu" and then space 3. you will see the whole preedit is underlined and the first 3 Japanese letters are with cyan background 4. do 1, 2, 3 on bloatpad 5. you will see only underline This looks like a leftover of recent GdkColor -> GdkRGBA migration.
Created attachment 234698 [details] [review] textlayout: respect preedit color attribute gtk_text_renderer_prepare_run now checks appearance.rgba, rather than appearance.{fg_color,bg_color}.
Review of attachment 234698 [details] [review]: I think you should just fix convert_color to set the rgba directly
Created attachment 234790 [details] [review] textlayout: respect preedit color attribute gtk_text_renderer_prepare_run now checks appearance.rgba, rather than appearance.{fg_color,bg_color}. -- Thanks, done.
Review of attachment 234790 [details] [review]: thanks, looks good to me
Attachment 234790 [details] pushed as 7a9553c - textlayout: respect preedit color attribute