forked from AuroraMiddleware/gtk
GtkThemingEngine: Add gtk_theming_engine_get_direction().
This commit is contained in:
parent
978d97ea6f
commit
fcf12ff9b9
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user