themingengine: Add a private function to query lengths

This commit is contained in:
Benjamin Otte
2012-01-15 05:29:02 +01:00
parent 762ea4793f
commit 82c2dad178
4 changed files with 33 additions and 0 deletions

View File

@ -340,6 +340,17 @@ _gtk_theming_engine_peek_property (GtkThemingEngine *engine,
return _gtk_style_context_peek_property (engine->priv->context, property_name);
}
double
_gtk_theming_engine_get_number (GtkThemingEngine *engine,
const char *property_name,
double one_hundred_percent)
{
g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), 0.0);
g_return_val_if_fail (property_name != NULL, 0.0);
return _gtk_style_context_get_number (engine->priv->context, property_name, one_hundred_percent);
}
/**
* gtk_theming_engine_get_property:
* @engine: a #GtkThemingEngine