Ensure harder a GtkStyleContext has a theming engine anytime
This commit is contained in:
parent
07e62229da
commit
f482d4dc89
@ -1165,6 +1165,10 @@ style_data_lookup (GtkStyleContext *context)
|
|||||||
gtk_style_properties_get (data->store, 0,
|
gtk_style_properties_get (data->store, 0,
|
||||||
"engine", &priv->theming_engine,
|
"engine", &priv->theming_engine,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
if (!priv->theming_engine)
|
||||||
|
priv->theming_engine = g_object_ref (gtk_theming_engine_load (NULL));
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user