summaryrefslogtreecommitdiff
path: root/gtk/gtkcssbordervalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-02-12 06:45:06 +0100
committerBenjamin Otte <otte@redhat.com>2016-02-13 04:49:08 +0100
commita52ecd2be61ee46b41267614484ed0401ac5cbc1 (patch)
tree09634a668945b829ac8c8a440102991191d7f4c0 /gtk/gtkcssbordervalue.c
parentb246d55472cdf7f8589a8cd8627e9dc4aead2fdd (diff)
downloadgtk+-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.c2
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);