[gtk+/parser: 9/80] cssprovider: Ignore empty rules



commit 599563c086cd01d2c847abf01a5ce93115bc596f
Author: Benjamin Otte <otte redhat com>
Date:   Thu Apr 7 02:15:02 2011 +0200

    cssprovider: Ignore empty rules

 gtk/gtkcssprovider.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 306bc38..02dde7b 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1623,6 +1623,9 @@ css_provider_commit (GtkCssProvider *css_provider)
   priv = css_provider->priv;
   l = priv->cur_selectors;
 
+  if (g_hash_table_size (priv->cur_properties) == 0)
+    return;
+
   while (l)
     {
       SelectorPath *path = l->data;



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