[gtk/wip/otte/css: 59/79] cssprovider: Advance parser to start of declaration
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/css: 59/79] cssprovider: Advance parser to start of declaration
- Date: Fri, 12 Apr 2019 16:08:50 +0000 (UTC)
commit 3ace18824ff6ee832cf1d426261cc79db7b91edf
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]