diff options
author | Benjamin Otte <otte@redhat.com> | 2011-06-13 06:24:10 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-06-13 15:01:52 +0200 |
commit | 9e2ebdee07a5866aba1155e627e664c512cf6a79 (patch) | |
tree | 1c378244bce2936defbd0de0c208778ab1d022db /gtk/gtkcssparser.c | |
parent | a471b4b19848178c8cc2d1d84ca1be25bc63d170 (diff) | |
download | gtk+-9e2ebdee07a5866aba1155e627e664c512cf6a79.tar.gz |
cssparser: Actually send an error in an error case
The error case was excess commas in rgb/rgba colors, such as
rgba(0,255,0,0,0.5)
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r-- | gtk/gtkcssparser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c index 3aab85e67a..80544515e1 100644 --- a/gtk/gtkcssparser.c +++ b/gtk/gtkcssparser.c @@ -716,6 +716,7 @@ gtk_css_parser_read_symbolic_color_function (GtkCssParser *parser, if (!_gtk_css_parser_try (parser, ")", TRUE)) { + _gtk_css_parser_error (parser, "Expected ')' in color definition"); gtk_symbolic_color_unref (symbolic); return NULL; } |