summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagerecolor.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkcssimagerecolor.c')
-rw-r--r--gtk/gtkcssimagerecolor.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkcssimagerecolor.c b/gtk/gtkcssimagerecolor.c
index 2027b4ecc5..d4e0bd3d3c 100644
--- a/gtk/gtkcssimagerecolor.c
+++ b/gtk/gtkcssimagerecolor.c
@@ -253,10 +253,7 @@ gtk_css_image_recolor_parse_arg (GtkCssParser *parser,
case 1:
self->palette = gtk_css_palette_value_parse (parser);
if (self->palette == NULL)
- {
- _gtk_css_parser_error (parser, "A palette is required here");
- return 0;
- }
+ return 0;
return 1;
default:
@@ -271,7 +268,7 @@ gtk_css_image_recolor_parse (GtkCssImage *image,
{
if (!gtk_css_parser_has_function (parser, "-gtk-recolor"))
{
- _gtk_css_parser_error (parser, "Expected '-gtk-recolor('");
+ gtk_css_parser_error_syntax (parser, "Expected '-gtk-recolor('");
return FALSE;
}