summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnumbervalue.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/gtkcssnumbervalue.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/gtkcssnumbervalue.c')
-rw-r--r--gtk/gtkcssnumbervalue.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcssnumbervalue.c b/gtk/gtkcssnumbervalue.c
index a766a631b5..05643d7364 100644
--- a/gtk/gtkcssnumbervalue.c
+++ b/gtk/gtkcssnumbervalue.c
@@ -48,6 +48,12 @@ _gtk_css_number_value_new (double value,
return gtk_css_dimension_value_new (value, unit);
}
+gboolean
+gtk_css_number_value_can_parse (GtkCssParser *parser)
+{
+ return _gtk_css_parser_has_number (parser);
+}
+
GtkCssValue *
_gtk_css_number_value_parse (GtkCssParser *parser,
GtkCssNumberParseFlags flags)