[gtk+/wip/colorchooser-v2: 42/77] themingengine: add a private _gtk_theming_engine_get_context()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/colorchooser-v2: 42/77] themingengine: add a private _gtk_theming_engine_get_context()
- Date: Thu, 9 Feb 2012 21:29:50 +0000 (UTC)
commit 943c2fab4cd7afbfb2b5393e3577ffeef01a6d97
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 8 16:10:01 2012 -0500
themingengine: add a private _gtk_theming_engine_get_context()
We'll need this later.
gtk/gtkthemingengine.c | 8 ++++++++
gtk/gtkthemingengineprivate.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 21bcdb8..68a6360 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -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)
diff --git a/gtk/gtkthemingengineprivate.h b/gtk/gtkthemingengineprivate.h
index 02c8969..9ec3b52 100644
--- a/gtk/gtkthemingengineprivate.h
+++ b/gtk/gtkthemingengineprivate.h
@@ -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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]