Ensure harder a GtkStyleContext has a theming engine anytime

This commit is contained in:
Carlos Garnacho 2011-01-17 03:56:47 +01:00
parent 07e62229da
commit f482d4dc89

View File

@ -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;
}