cssvalue: Make the array parser no longer parse "none"

Arrays that support it, handle it themselves.
This commit is contained in:
Benjamin Otte
2012-08-29 12:30:33 +02:00
parent 44ba5d253f
commit 912d5a5c23
3 changed files with 12 additions and 18 deletions

View File

@ -157,16 +157,11 @@ _gtk_css_array_value_new_from_array (GtkCssValue **values,
GtkCssValue *
_gtk_css_array_value_parse (GtkCssParser *parser,
GtkCssValue *(* parse_func) (GtkCssParser *parser),
gboolean allow_none)
GtkCssValue *(* parse_func) (GtkCssParser *parser))
{
GtkCssValue *value, *result;
GPtrArray *values;
if (allow_none &&
_gtk_css_parser_try (parser, "none", TRUE))
return _gtk_css_value_ref (&none_singleton);
values = g_ptr_array_new ();
do {