css: Add gtk_css_number_value_can_parse()

Use it instead of _gtk_css_parser_has_number().

We need that once we introduce calc() support.
This commit is contained in:
Benjamin Otte
2016-02-12 06:45:06 +01:00
parent b246d55472
commit a52ecd2be6
11 changed files with 28 additions and 21 deletions

View File

@ -174,7 +174,7 @@ _gtk_css_border_value_parse (GtkCssParser *parser,
if (allow_auto && _gtk_css_parser_try (parser, "auto", TRUE))
continue;
if (!_gtk_css_parser_has_number (parser))
if (!gtk_css_number_value_can_parse (parser))
break;
result->values[i] = _gtk_css_number_value_parse (parser, flags);