diff options
author | Benjamin Otte <otte@redhat.com> | 2019-03-24 14:03:52 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-04-12 19:34:28 +0200 |
commit | 76fb80f46cfed1dd3cc0040f527c0ab3ee499118 (patch) | |
tree | c0c58a828772bf714fd61d4f53ab03439e965011 /gtk/gtkcsspositionvalue.c | |
parent | 684b6459f1ab21f367d75aa96a2c1c076b67211e (diff) | |
download | gtk+-76fb80f46cfed1dd3cc0040f527c0ab3ee499118.tar.gz |
cssparser: Introduce gtk_css_parser_try_ident()
... and gtk_css_parser_has_function().
Diffstat (limited to 'gtk/gtkcsspositionvalue.c')
-rw-r--r-- | gtk/gtkcsspositionvalue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcsspositionvalue.c b/gtk/gtkcsspositionvalue.c index 42735fe3ba..280ddc38f8 100644 --- a/gtk/gtkcsspositionvalue.c +++ b/gtk/gtkcsspositionvalue.c @@ -195,7 +195,7 @@ position_value_parse (GtkCssParser *parser, gboolean try) for (first = 0; names[first].name != NULL; first++) { - if (_gtk_css_parser_try (parser, names[first].name, TRUE)) + if (gtk_css_parser_try_ident (parser, names[first].name)) { if (names[first].horizontal) { @@ -232,7 +232,7 @@ position_value_parse (GtkCssParser *parser, gboolean try) for (second = 0; names[second].name != NULL; second++) { - if (_gtk_css_parser_try (parser, names[second].name, TRUE)) + if (gtk_css_parser_try_ident (parser, names[second].name)) { *missing = _gtk_css_number_value_new (names[second].percentage, GTK_CSS_PERCENT); break; |