GtkStyleContext: Relate to a GtkThemingEngine.
This commit is contained in:
		@ -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 *
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user