themingengine: add a private _gtk_theming_engine_get_context()

We'll need this later.
This commit is contained in:
Cosimo Cecchi 2012-02-08 16:10:01 -05:00 committed by Matthias Clasen
parent 4e37d56d51
commit 4c61f1f663
2 changed files with 9 additions and 0 deletions

View File

@ -330,6 +330,14 @@ _gtk_theming_engine_set_context (GtkThemingEngine *engine,
priv->context = context;
}
GtkStyleContext *
_gtk_theming_engine_get_context (GtkThemingEngine *engine)
{
g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), NULL);
return engine->priv->context;
}
const GValue *
_gtk_theming_engine_peek_property (GtkThemingEngine *engine,
const char *property_name)

View File

@ -35,5 +35,6 @@ double _gtk_theming_engine_get_number (GtkThemingEngine *engine,
double one_hundred_percent);
void _gtk_theming_engine_set_context (GtkThemingEngine *engine,
GtkStyleContext *context);
GtkStyleContext *_gtk_theming_engine_get_context (GtkThemingEngine *engine);
#endif /* __GTK_THEMING_ENGINE_PRIVATE_H__ */