summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2011-06-13 06:24:10 +0200
committerBenjamin Otte <otte@redhat.com>2011-06-13 15:01:52 +0200
commit9e2ebdee07a5866aba1155e627e664c512cf6a79 (patch)
tree1c378244bce2936defbd0de0c208778ab1d022db /gtk/gtkcssparser.c
parenta471b4b19848178c8cc2d1d84ca1be25bc63d170 (diff)
downloadgtk+-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.c1
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;
}