summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstyleproperty.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-24 14:03:52 +0100
committerBenjamin Otte <otte@redhat.com>2019-04-12 19:34:28 +0200
commit76fb80f46cfed1dd3cc0040f527c0ab3ee499118 (patch)
treec0c58a828772bf714fd61d4f53ab03439e965011 /gtk/gtkcssstyleproperty.c
parent684b6459f1ab21f367d75aa96a2c1c076b67211e (diff)
downloadgtk+-76fb80f46cfed1dd3cc0040f527c0ab3ee499118.tar.gz
cssparser: Introduce gtk_css_parser_try_ident()
... and gtk_css_parser_has_function().
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r--gtk/gtkcssstyleproperty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c
index 70f014bb25..bdc7fb853e 100644
--- a/gtk/gtkcssstyleproperty.c
+++ b/gtk/gtkcssstyleproperty.c
@@ -142,14 +142,14 @@ gtk_css_style_property_parse_value (GtkStyleProperty *property,
{
GtkCssStyleProperty *style_property = GTK_CSS_STYLE_PROPERTY (property);
- if (_gtk_css_parser_try (parser, "initial", TRUE))
+ if (gtk_css_parser_try_ident (parser, "initial"))
{
/* the initial value can be explicitly specified with the
* ‘initial’ keyword which all properties accept.
*/
return _gtk_css_initial_value_new ();
}
- else if (_gtk_css_parser_try (parser, "inherit", TRUE))
+ else if (gtk_css_parser_try_ident (parser, "inherit"))
{
/* All properties accept the ‘inherit’ value which
* explicitly specifies that the value will be determined
@@ -159,7 +159,7 @@ gtk_css_style_property_parse_value (GtkStyleProperty *property,
*/
return _gtk_css_inherit_value_new ();
}
- else if (_gtk_css_parser_try (parser, "unset", TRUE))
+ else if (gtk_css_parser_try_ident (parser, "unset"))
{
/* If the cascaded value of a property is the unset keyword,
* then if it is an inherited property, this is treated as