diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-12 06:45:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-13 04:49:08 +0100 |
commit | a52ecd2be61ee46b41267614484ed0401ac5cbc1 (patch) | |
tree | 09634a668945b829ac8c8a440102991191d7f4c0 /gtk/gtkcssbordervalue.c | |
parent | b246d55472cdf7f8589a8cd8627e9dc4aead2fdd (diff) | |
download | gtk+-a52ecd2be61ee46b41267614484ed0401ac5cbc1.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcssbordervalue.c')
-rw-r--r-- | gtk/gtkcssbordervalue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssbordervalue.c b/gtk/gtkcssbordervalue.c index 7161470063..0b68d86f7a 100644 --- a/gtk/gtkcssbordervalue.c +++ b/gtk/gtkcssbordervalue.c @@ -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); |