From ef4c9b6f1f31a6e8efbbfaaf6baf6875a55e4fd9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 23 Feb 2010 11:13:58 -0500 Subject: [PATCH] [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 --- src/st/st-theme-node.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c index 8875378f1..0449d794a 100644 --- a/src/st/st-theme-node.c +++ b/src/st/st-theme-node.c @@ -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\"",