summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-07 22:48:32 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-08-07 22:48:32 +0000
commit54d29568ecb1130765739c558879a91d5706bd77 (patch)
tree87aafa547454799e9c5f0fab87e900fad5e69f89
parent90c429a91c881644e21e2e9c53602fcae8a57d88 (diff)
parent4e1ea58503a6895029c95f56299e83ad91b606ab (diff)
downloadgtk+-54d29568ecb1130765739c558879a91d5706bd77.tar.gz
Merge branch 'matthiasc/for-master' into 'master'
Cosmetics: Tweak css parser error messages See merge request GNOME/gtk!3834
-rw-r--r--gtk/gtkcssdimensionvalue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssdimensionvalue.c b/gtk/gtkcssdimensionvalue.c
index 385661b029..84a1d0e780 100644
--- a/gtk/gtkcssdimensionvalue.c
+++ b/gtk/gtkcssdimensionvalue.c
@@ -106,7 +106,7 @@ gtk_css_dimension_value_parse (GtkCssParser *parser,
if (i >= G_N_ELEMENTS (units))
{
- gtk_css_parser_error_syntax (parser, "'%s' is not a valid unit.", token->dimension.dimension);
+ gtk_css_parser_error_syntax (parser, "'%s' is not a valid unit", token->dimension.dimension);
return NULL;
}
@@ -122,7 +122,7 @@ gtk_css_dimension_value_parse (GtkCssParser *parser,
if (flags & GTK_CSS_POSITIVE_ONLY &&
number < 0)
{
- gtk_css_parser_error_value (parser, "negative values are not allowed.");
+ gtk_css_parser_error_value (parser, "Negative values are not allowed");
return NULL;
}