[gtk+] cssparser: Actually send an error in an error case
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssparser: Actually send an error in an error case
- Date: Mon, 13 Jun 2011 15:30:04 +0000 (UTC)
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]