css: 'transparent' is a valid color everywhere

This commit is contained in:
Benjamin Otte
2011-12-31 23:20:44 +01:00
parent 36e1bcac3c
commit f5fafb18c9
2 changed files with 12 additions and 22 deletions

View File

@ -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);