Add StIconColors object, compute in StThemeNode

A new StIconColors object is used to efficiently track the colors
we need to colorize a symbolic icon.
st_theme_node_compute_icon_colors() is added to compute the
StIconColors for a theme node. (Refcounting of StIconColors means
that we'll typically share the colors object of the parent node.)

https://bugzilla.gnome.org/show_bug.cgi?id=633865
This commit is contained in:
Owen W. Taylor
2010-10-31 22:06:48 -04:00
parent 3ca86b2197
commit 04da2a61db
6 changed files with 277 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ struct _StThemeNode {
StBorderImage *border_image;
StShadow *shadow;
StShadow *text_shadow;
StIconColors *icon_colors;
GType element_type;
char *element_id;