Commit 0aa07c6f authored by Benjamin Otte's avatar Benjamin Otte

cssprovider: Remove colors when resetting

parent a105edbf
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment