mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 14:14:10 +00:00

Since the Cogl material branch merge when changing the color of a part using pango attributes (such as using <span color="red" /> markup) then it wouldn't return to the default color for the rest of the layout. pango_renderer_get_color returns NULL if there is no color override in which case it needs to revert to the color specified as the argument to cogl_pango_render_layout. The 'color' member of CoglPangoRenderer has been reinstated to store that default color and now cogl_pango_render_set_color_for_part is the only place that sets the material color.