[gtk+] cssprovider: Remove colors when resetting
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssprovider: Remove colors when resetting
- Date: Thu, 2 Jun 2011 00:12:23 +0000 (UTC)
commit 0aa07c6fd613c411a3a236a3b1f71b0d0c321c57
Author: Benjamin Otte <otte redhat com>
Date: Sat May 28 01:01:42 2011 +0200
cssprovider: Remove colors when resetting
gtk/gtkcssprovider.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 89a3ce6..c2e2022 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1526,6 +1526,8 @@ gtk_css_provider_reset (GtkCssProvider *css_provider)
priv = css_provider->priv;
+ g_hash_table_remove_all (priv->symbolic_colors);
+
for (i = 0; i < priv->rulesets->len; i++)
gtk_css_ruleset_clear (&g_array_index (priv->rulesets, GtkCssRuleset, i));
g_array_set_size (priv->rulesets, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]