st_theme_node_get_color: fix inheritance

This wasn't actually recursing if you passed the "inherit" flag

https://bugzilla.gnome.org/show_bug.cgi?id=632590
This commit is contained in:
Dan Winship 2010-10-19 13:59:49 -04:00
parent be7b9729a2
commit 33e955770c

View File

@ -542,6 +542,9 @@ st_theme_node_get_color (StThemeNode *node,
} }
} }
if (inherit && node->parent_node)
return st_theme_node_get_color (node->parent_node, property_name, inherit, color);
return FALSE; return FALSE;
} }