diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index 8e01b9c0b4..e36bef4eb7 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -1165,6 +1165,10 @@ style_data_lookup (GtkStyleContext *context) gtk_style_properties_get (data->store, 0, "engine", &priv->theming_engine, NULL); + + if (!priv->theming_engine) + priv->theming_engine = g_object_ref (gtk_theming_engine_load (NULL)); + return data; }