themingengine: Add _gtk_theming_engine_peek_property()
This is useful for getting at computed values and allows accessing images before the code autoconverts them to a cairo pattern.
This commit is contained in:
@ -338,6 +338,16 @@ _gtk_theming_engine_set_context (GtkThemingEngine *engine,
|
||||
priv->context = context;
|
||||
}
|
||||
|
||||
const GValue *
|
||||
_gtk_theming_engine_peek_property (GtkThemingEngine *engine,
|
||||
const char *property_name)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), NULL);
|
||||
g_return_val_if_fail (property_name != NULL, NULL);
|
||||
|
||||
return _gtk_style_context_peek_property (engine->priv->context, property_name);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_theming_engine_get_property:
|
||||
* @engine: a #GtkThemingEngine
|
||||
|
||||
Reference in New Issue
Block a user