summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-02-09 09:41:48 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:30 +0100
commit630f0f199ef791c3657472429d850242c973eefe (patch)
tree88d315cbd4d94ed35c6b1d0d98f0eb88c5111d3e /gtk/gtkcssnodeprivate.h
parent5df01f9244fc669a0fb95e6b7494d31e6ef737da (diff)
downloadgtk+-630f0f199ef791c3657472429d850242c973eefe.tar.gz
cssnode: Split out a function
So far the vfunc is kinda quirky (the path argument is an out argument for something you have to free when you're done with the matcher), but I'm about to change that.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r--gtk/gtkcssnodeprivate.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 25e4cfa5ba..b1197302e6 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -19,7 +19,8 @@
#define __GTK_CSS_NODE_PRIVATE_H__
#include "gtkcssnodedeclarationprivate.h"
-#include "gtkcssstyleprivate.h"
+#include "gtkbitmaskprivate.h"
+#include "gtkcsstypesprivate.h"
G_BEGIN_DECLS
@@ -56,6 +57,9 @@ struct _GtkCssNodeClass
{
GObjectClass object_class;
+ gboolean (* init_matcher) (GtkCssNode *cssnode,
+ GtkCssMatcher *matcher,
+ GtkWidgetPath **path);
GtkWidgetPath * (* create_widget_path) (GtkCssNode *cssnode);
const GtkWidgetPath * (* get_widget_path) (GtkCssNode *cssnode);
GtkStyleProviderPrivate *(* get_style_provider) (GtkCssNode *cssnode);
@@ -129,6 +133,10 @@ void gtk_css_node_validate (GtkCssNode *
const GtkBitmask *parent_changes);
void gtk_css_node_set_invalid (GtkCssNode *node,
gboolean invalid);
+
+gboolean gtk_css_node_init_matcher (GtkCssNode *cssnode,
+ GtkCssMatcher *matcher,
+ GtkWidgetPath **path);
GtkWidgetPath * gtk_css_node_create_widget_path (GtkCssNode *cssnode);
const GtkWidgetPath * gtk_css_node_get_widget_path (GtkCssNode *cssnode);
GtkStyleProviderPrivate *gtk_css_node_get_style_provider(GtkCssNode *cssnode);