diff options
author | Benjamin Otte <otte@redhat.com> | 2011-12-31 23:20:44 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:53 +0100 |
commit | f5fafb18c994106362b33ac990dde9030a67cd26 (patch) | |
tree | 5c053a420f973739c3be0f995ebc3ee52d5941a2 /gtk/gtkcssparser.c | |
parent | 36e1bcac3c1479a2327b5420124fe59fb2fec8b6 (diff) | |
download | gtk+-f5fafb18c994106362b33ac990dde9030a67cd26.tar.gz |
css: 'transparent' is a valid color everywhere
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r-- | gtk/gtkcssparser.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c index 27ea5110dc..8867e04065 100644 --- a/gtk/gtkcssparser.c +++ b/gtk/gtkcssparser.c @@ -831,6 +831,13 @@ _gtk_css_parser_read_symbolic_color (GtkCssParser *parser) g_return_val_if_fail (GTK_IS_CSS_PARSER (parser), NULL); + if (_gtk_css_parser_try (parser, "transparent", TRUE)) + { + GdkRGBA transparent = { 0, 0, 0, 0 }; + + return gtk_symbolic_color_new_literal (&transparent); + } + if (_gtk_css_parser_try (parser, "@", FALSE)) { name = _gtk_css_parser_try_name (parser, TRUE); |