Cosmetics: Tweak css parser error messages
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Aug 2021 22:16:19 +0000 (18:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 7 Aug 2021 22:18:10 +0000 (18:18 -0400)
These show up in tooltips, so they should a) be capitalized
and b) not end with a period.

gtk/gtkcssdimensionvalue.c

index 385661b029b84d6f411f5e356220c8341756b9d6..84a1d0e780e6a2f1131d312a200206d7c5f74065 100644 (file)
@@ -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;
     }