summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-31 11:39:24 +0200
committerBenjamin Otte <otte@redhat.com>2019-04-12 19:34:28 +0200
commit28fbcf6abede0b30a57cc154623b0219793e7c7c (patch)
treeca795a292ddede3094c06aa98416a0700b21f1d4
parent1fd339c46fba2dfe2189e629a4973a4f3a199e5b (diff)
downloadgtk+-28fbcf6abede0b30a57cc154623b0219793e7c7c.tar.gz
shorthand: Use gtk_css_parser_try_ident()
-rw-r--r--gtk/gtkcssshorthandproperty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c
index 21455a785a..486a44b3cc 100644
--- a/gtk/gtkcssshorthandproperty.c
+++ b/gtk/gtkcssshorthandproperty.c
@@ -84,7 +84,7 @@ gtk_css_shorthand_property_parse_value (GtkStyleProperty *property,
data = g_new0 (GtkCssValue *, shorthand->subproperties->len);
- 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.
@@ -94,7 +94,7 @@ gtk_css_shorthand_property_parse_value (GtkStyleProperty *property,
data[i] = _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
@@ -107,7 +107,7 @@ gtk_css_shorthand_property_parse_value (GtkStyleProperty *property,
data[i] = _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