summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-12-31 23:20:44 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:53 +0100
commitf5fafb18c994106362b33ac990dde9030a67cd26 (patch)
tree5c053a420f973739c3be0f995ebc3ee52d5941a2 /gtk/gtkcssparser.c
parent36e1bcac3c1479a2327b5420124fe59fb2fec8b6 (diff)
downloadgtk+-f5fafb18c994106362b33ac990dde9030a67cd26.tar.gz
css: 'transparent' is a valid color everywhere
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r--gtk/gtkcssparser.c7
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);