[gtk+] cssparser: Actually send an error in an error case



commit 9e2ebdee07a5866aba1155e627e664c512cf6a79
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jun 13 06:24:10 2011 +0200

    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)

 gtk/gtkcssparser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index 3aab85e..8054451 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;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]