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



commit 00606329d5b68c721c62321a7d73a630bf045dec
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]