[gtk] cssprovider: Advance parser to start of declaration



commit 085d34cbb0e5953049d96196fd6b8e9a8d9ea9be
Author: Benjamin Otte <otte redhat com>
Date:   Wed Apr 10 17:07:06 2019 +0200

    cssprovider: Advance parser to start of declaration
    
    This way, the block will reference the right location.

 gtk/gtkcssprovider.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 8e811a1091..c16bfcb94b 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -931,6 +931,8 @@ parse_declaration (GtkCssScanner *scanner,
   GtkStyleProperty *property;
   char *name;
 
+  /* advance the location over whitespace */
+  gtk_css_parser_get_token (scanner->parser);
   gtk_css_parser_start_semicolon_block (scanner->parser, GTK_CSS_TOKEN_EOF);
 
   if (gtk_css_parser_has_token (scanner->parser, GTK_CSS_TOKEN_EOF))


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