summaryrefslogtreecommitdiff
path: root/gtk/gtkcssshorthandpropertyimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-04-01 11:47:53 +0200
committerBenjamin Otte <otte@redhat.com>2019-04-12 19:34:28 +0200
commitdce8c11b07ba9a51102af4dbbc84450e60822fb0 (patch)
treee25e361413564e9dd1f1bae2eb66968b5ca8a2e8 /gtk/gtkcssshorthandpropertyimpl.c
parent7ccec19501fef664aa7b9bc333230a9f3bc9aeb5 (diff)
downloadgtk+-dce8c11b07ba9a51102af4dbbc84450e60822fb0.tar.gz
cssparser: Drop _gtk_css_parser_has_prefix()
Replace it with has_ident/has_function. The old function is a typical string matching API, not a tokenizing one.
Diffstat (limited to 'gtk/gtkcssshorthandpropertyimpl.c')
-rw-r--r--gtk/gtkcssshorthandpropertyimpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssshorthandpropertyimpl.c b/gtk/gtkcssshorthandpropertyimpl.c
index 3b32c7f282..0f14bf9524 100644
--- a/gtk/gtkcssshorthandpropertyimpl.c
+++ b/gtk/gtkcssshorthandpropertyimpl.c
@@ -261,7 +261,7 @@ parse_border_image (GtkCssShorthandProperty *shorthand,
do
{
if (values[0] == NULL &&
- (_gtk_css_parser_has_prefix (parser, "none") ||
+ (gtk_css_parser_has_ident (parser, "none") ||
_gtk_css_image_can_parse (parser)))
{
GtkCssImage *image;
@@ -507,7 +507,7 @@ parse_one_background (GtkCssShorthandProperty *shorthand,
{
/* the image part */
if (values[0] == NULL &&
- (_gtk_css_parser_has_prefix (parser, "none") ||
+ (gtk_css_parser_has_ident (parser, "none") ||
_gtk_css_image_can_parse (parser)))
{
GtkCssImage *image;