mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
css: Raised SYNTAX error when enum value can't be parsed
This commit is contained in:
parent
8ca799cc39
commit
619d344d8d
@ -1120,7 +1120,7 @@ enum_value_from_string (const char *str,
|
|||||||
{
|
{
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
GTK_CSS_PROVIDER_ERROR,
|
GTK_CSS_PROVIDER_ERROR,
|
||||||
GTK_CSS_PROVIDER_ERROR_FAILED,
|
GTK_CSS_PROVIDER_ERROR_SYNTAX,
|
||||||
"Unknown value '%s' for enum type '%s'",
|
"Unknown value '%s' for enum type '%s'",
|
||||||
str, g_type_name (G_VALUE_TYPE (value)));
|
str, g_type_name (G_VALUE_TYPE (value)));
|
||||||
g_type_class_unref (enum_class);
|
g_type_class_unref (enum_class);
|
||||||
|
Loading…
Reference in New Issue
Block a user