Commit 1c2d9cac authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas
Browse files

shadow-helper: Don't set style context parent

Even though foreign drawing uses a temporary GtkStyleContext, calling
gtk_style_context_set_parent() adds all its CSS nodes to the global
hierarchy, and then they aren't cleaned up. This shouldn't happen.

Fixes Librem5/libhandy#191
parent 941f9d69
......@@ -81,8 +81,6 @@ create_context (HdyShadowHelper *self,
context = gtk_style_context_new ();
gtk_style_context_set_path (context, path);
gtk_style_context_set_parent (context,
gtk_widget_get_style_context (self->widget));
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (self->provider),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment