[gtk+/parser: 13/80] cssprovider: Automatically add final closing bracket to last rule



commit 2118bc8cd9833ad423fc374b90b4817acc610486
Author: Benjamin Otte <otte redhat com>
Date:   Thu Apr 7 12:19:07 2011 +0200

    cssprovider: Automatically add final closing bracket to last rule

 gtk/gtkcssprovider.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 02dde7b..cd474e5 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3516,7 +3516,8 @@ parse_rule (GtkCssProvider  *css_provider,
       g_scanner_get_next_token (scanner);
     }
 
-  if (scanner->token != G_TOKEN_RIGHT_CURLY)
+  if (scanner->token != G_TOKEN_RIGHT_CURLY &&
+      scanner->token != G_TOKEN_EOF)
     return G_TOKEN_RIGHT_CURLY;
 
   css_provider_pop_scope (css_provider);



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