[gtk+] cssprovider: Automatically add final closing bracket to last rule
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssprovider: Automatically add final closing bracket to last rule
- Date: Wed, 18 May 2011 20:25:03 +0000 (UTC)
commit 38ca304825ed784a0fd9d565d141cd43eba487b4
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 f4e7764..837ffcb 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]