[gtk/matthiasc/for-master] Cosmetics: Tweak css parser error messages
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] Cosmetics: Tweak css parser error messages
- Date: Sat, 7 Aug 2021 22:18:33 +0000 (UTC)
commit 4e1ea58503a6895029c95f56299e83ad91b606ab
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 7 18:16:19 2021 -0400
Cosmetics: Tweak css parser error messages
These show up in tooltips, so they should a) be capitalized
and b) not end with a period.
gtk/gtkcssdimensionvalue.c | 4 ++--
1 file 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]