[gtk+/gtk-style-context: 154/347] GtkThemingEngine: Add gtk_theming_engine_get_direction().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 154/347] GtkThemingEngine: Add gtk_theming_engine_get_direction().
- Date: Thu, 11 Nov 2010 01:17:28 +0000 (UTC)
commit eacc317d27f63a61e711a191d08f1235155b3583
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 3 20:26:53 2010 +0200
GtkThemingEngine: Add gtk_theming_engine_get_direction().
gtk/gtkthemingengine.c | 11 +++++++++++
gtk/gtkthemingengine.h | 2 ++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 8168dc9..e873c88 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -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
diff --git a/gtk/gtkthemingengine.h b/gtk/gtkthemingengine.h
index 5703b2c..f6ae571 100644
--- a/gtk/gtkthemingengine.h
+++ b/gtk/gtkthemingengine.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]