[gtk+/gtk-style-context: 24/490] GtkStyleContext: Relate to a GtkThemingEngine.



commit 1dc8689f993008c52948244ab700329444b5af46
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Mar 13 20:08:06 2010 +0100

    GtkStyleContext: Relate to a GtkThemingEngine.

 gtk/gtkstylecontext.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index b19b02a..6dfdf50 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]