From bd3b97d82bb31171f6917382b0a4a0a44721821c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 13 Mar 2010 20:08:06 +0100 Subject: [PATCH] GtkStyleContext: Relate to a GtkThemingEngine. --- gtk/gtkstylecontext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index b19b02a20f..6dfdf50f26 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -23,6 +23,7 @@ #include "gtkstylecontext.h" #include "gtktypebuiltins.h" +#include "gtkthemingengine.h" #include "gtkintl.h" #include "gtkalias.h" @@ -43,6 +44,8 @@ struct GtkStyleContextPrivate GtkWidgetPath *widget_path; GtkStateFlags state_flags; + + GtkThemingEngine *theming_engine; }; #define GTK_STYLE_CONTEXT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_STYLE_CONTEXT, GtkStyleContextPrivate)) @@ -69,6 +72,7 @@ gtk_style_context_init (GtkStyleContext *style_context) priv = GTK_STYLE_CONTEXT_GET_PRIVATE (style_context); priv->store = gtk_style_set_new (); + priv->theming_engine = gtk_theming_engine_load (NULL); } static GtkStyleProviderData *