[gtk+/gtk-3-22] CssSelector: Fix warning for bad pseudo-class name



commit 11f81e77f966807da2354c9f592fdb72d19b9d35
Author: Daniel Boles <dboles src gnome org>
Date:   Sat Feb 18 21:01:38 2017 +0000

    CssSelector: Fix warning for bad pseudo-class name
    
    It was "Missing name of pseudo-class", but the real problem is exactly
    the opposite: we /have/ been given a name, but it is not a valid one.
    Change it to "Invalid name of pseudo-class" to minimise confusion.

 gtk/gtkcssselector.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index d3bcc79..06258cf 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -1189,7 +1189,7 @@ parse_selector_pseudo_class (GtkCssParser   *parser,
         }
     }
       
-  _gtk_css_parser_error (parser, "Missing name of pseudo-class");
+  _gtk_css_parser_error (parser, "Invalid name of pseudo-class");
   if (selector)
     _gtk_css_selector_free (selector);
   return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]