[gnome-shell] [StThemeNode] allow "background-gradient-direction: none"
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [StThemeNode] allow "background-gradient-direction: none"
- Date: Tue, 23 Feb 2010 19:45:21 +0000 (UTC)
commit ef4c9b6f1f31a6e8efbbfaaf6baf6875a55e4fd9
Author: Dan Winship <danw gnome org>
Date: Tue Feb 23 11:13:58 2010 -0500
[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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 8875378..0449d79 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\"",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]