summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodeprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-01-28 05:14:47 +0100
committerBenjamin Otte <otte@redhat.com>2015-03-18 15:23:29 +0100
commit55e68bc2ea2200090527c791be8aa126742a776d (patch)
tree100c30cedfc5727478ab7ae82106fe0d6d9ee17b /gtk/gtkcssnodeprivate.h
parenta589f988218d343e3aa0f7d98d16b8e52a86b7bc (diff)
downloadgtk+-55e68bc2ea2200090527c791be8aa126742a776d.tar.gz
cssnode: Track invalid flag
Remove it from GtkStyleContext.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r--gtk/gtkcssnodeprivate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index c00c8754da..873ba67ba1 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -46,6 +46,8 @@ struct _GtkCssNode
GtkCssNodeDeclaration *decl;
GtkCssStyle *style;
+
+ guint invalid :1; /* set if node or a child is invalid */
};
struct _GtkCssNodeClass
@@ -56,6 +58,8 @@ struct _GtkCssNodeClass
const GtkWidgetPath * (* get_widget_path) (GtkCssNode *cssnode);
void (* invalidate) (GtkCssNode *cssnode,
GtkCssChange change);
+ void (* set_invalid) (GtkCssNode *node,
+ gboolean invalid);
};
GType gtk_css_node_get_type (void) G_GNUC_CONST;
@@ -108,6 +112,8 @@ void gtk_css_node_set_style (GtkCssNode *
void gtk_css_node_invalidate (GtkCssNode *cssnode,
GtkCssChange change);
+void gtk_css_node_set_invalid (GtkCssNode *node,
+ gboolean invalid);
GtkWidgetPath * gtk_css_node_create_widget_path (GtkCssNode *cssnode);
const GtkWidgetPath * gtk_css_node_get_widget_path (GtkCssNode *cssnode);