diff options
author | Benjamin Otte <otte@redhat.com> | 2019-04-09 05:40:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-04-12 19:34:28 +0200 |
commit | 1cd93961548efd7386fbd403f8b374ec41d08ffd (patch) | |
tree | f54f70c5006441cddcbbe42981170989d7b5a916 /gtk/gtkcsseasevalue.c | |
parent | de73ac980f2c4a7ce981910d4ebd68591bde7329 (diff) | |
download | gtk+-1cd93961548efd7386fbd403f8b374ec41d08ffd.tar.gz |
css: Review error messages
... and move them from _gtk_css_parser_error() to the proper new error
message.
Diffstat (limited to 'gtk/gtkcsseasevalue.c')
-rw-r--r-- | gtk/gtkcsseasevalue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcsseasevalue.c b/gtk/gtkcsseasevalue.c index cdf8e96bde..4d79f4fe29 100644 --- a/gtk/gtkcsseasevalue.c +++ b/gtk/gtkcsseasevalue.c @@ -238,7 +238,7 @@ gtk_css_ease_value_parse_cubic_bezier_arg (GtkCssParser *parser, { if (values[arg] < 0 || values[arg] > 1.0) { - _gtk_css_parser_error (parser, "value %g out of range. Must be from 0.0 to 1.0", values[arg]); + gtk_css_parser_error_value (parser, "value %g out of range. Must be from 0.0 to 1.0", values[arg]); return 0; } } @@ -279,7 +279,7 @@ gtk_css_ease_value_parse_steps_arg (GtkCssParser *parser, } else if (data->n_steps < 1) { - _gtk_css_parser_error (parser, "Number of steps must be > 0"); + gtk_css_parser_error_value (parser, "Number of steps must be > 0"); return 0; } return 1; @@ -291,7 +291,7 @@ gtk_css_ease_value_parse_steps_arg (GtkCssParser *parser, data->start = FALSE; else { - _gtk_css_parser_error (parser, "Only allowed values are 'start' and 'end'"); + gtk_css_parser_error_syntax (parser, "Only allowed values are 'start' and 'end'"); return 0; } return 1; @@ -347,7 +347,7 @@ _gtk_css_ease_value_parse (GtkCssParser *parser) } } - _gtk_css_parser_error (parser, "Unknown value"); + gtk_css_parser_error_syntax (parser, "Expected a valid ease value"); return NULL; } |