From 619d344d8d47ab9ccb4d030fb12d04eeb6b0c264 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 15 May 2011 15:55:13 +0200 Subject: [PATCH] css: Raised SYNTAX error when enum value can't be parsed --- gtk/gtkcssstringfuncs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssstringfuncs.c b/gtk/gtkcssstringfuncs.c index 53a5cccd68..19ae2aa52d 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);