[gtk+/parser] css: Raised SYNTAX error when enum value can't be parsed



commit a8bc95ca7f60b609dcc970ce8af6b4c0033fec87
Author: Benjamin Otte <otte redhat com>
Date:   Sun May 15 15:55:13 2011 +0200

    css: Raised SYNTAX error when enum value can't be parsed

 gtk/gtkcssstringfuncs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssstringfuncs.c b/gtk/gtkcssstringfuncs.c
index 53a5ccc..19ae2aa 100644
--- a/gtk/gtkcssstringfuncs.c
+++ b/gtk/gtkcssstringfuncs.c
@@ -1120,7 +1120,7 @@ enum_value_from_string (const char  *str,
     {
       g_set_error (error,
                    GTK_CSS_PROVIDER_ERROR,
-                   GTK_CSS_PROVIDER_ERROR_FAILED,
+                   GTK_CSS_PROVIDER_ERROR_SYNTAX,
                    "Unknown value '%s' for enum type '%s'",
                    str, g_type_name (G_VALUE_TYPE (value)));
       g_type_class_unref (enum_class);



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