GtkThemingEngine: Add gtk_theming_engine_get_direction().

This commit is contained in:
Carlos Garnacho 2010-08-03 20:26:53 +02:00
parent 978d97ea6f
commit fcf12ff9b9
2 changed files with 13 additions and 0 deletions

View File

@ -347,6 +347,17 @@ gtk_theming_engine_has_child_class (GtkThemingEngine *engine,
return gtk_style_context_has_child_class (priv->context, style_class, flags);
}
GtkTextDirection
gtk_theming_engine_get_direction (GtkThemingEngine *engine)
{
GtkThemingEnginePrivate *priv;
g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), GTK_TEXT_DIR_LTR);
priv = engine->priv;
return gtk_style_context_get_direction (priv->context);
}
/* GtkThemingModule */
static gboolean

View File

@ -171,6 +171,8 @@ GtkStateFlags gtk_theming_engine_get_state (GtkThemingEngine *engine);
gboolean gtk__theming_engine_is_state_set (GtkThemingEngine *engine,
GtkStateType state);
GtkTextDirection gtk_theming_engine_get_direction (GtkThemingEngine *engine);
G_CONST_RETURN GtkThemingEngine * gtk_theming_engine_load (const gchar *name);
GdkScreen * gtk_theming_engine_get_screen (GtkThemingEngine *engine);