[StThemeNode] allow "background-gradient-direction: none"

this lets a more-specific CSS rule turn off the gradient inherited
from a less-specific rule

https://bugzilla.gnome.org/show_bug.cgi?id=610856
This commit is contained in:
Dan Winship 2010-02-23 11:13:58 -05:00
parent 4d43424efd
commit ef4c9b6f1f

View File

@ -1394,6 +1394,10 @@ ensure_background (StThemeNode *node)
{
node->background_gradient_type = ST_GRADIENT_RADIAL;
}
else if (strcmp (term->content.str->stryng->str, "none") == 0)
{
node->background_gradient_type = ST_GRADIENT_NONE;
}
else
{
g_warning ("Unrecognized background-gradient-direction \"%s\"",