[gtk+] cssprovider: Ignore empty rules
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssprovider: Ignore empty rules
- Date: Wed, 18 May 2011 20:24:42 +0000 (UTC)
commit 9d9f1e38b2af6d3764f04ae5b42adf27c291fee5
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 80ab697..f4e7764 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]