diff options
author | Benjamin Otte <otte@redhat.com> | 2015-01-28 05:14:47 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:29 +0100 |
commit | 55e68bc2ea2200090527c791be8aa126742a776d (patch) | |
tree | 100c30cedfc5727478ab7ae82106fe0d6d9ee17b /gtk/gtkcssnodeprivate.h | |
parent | a589f988218d343e3aa0f7d98d16b8e52a86b7bc (diff) | |
download | gtk+-55e68bc2ea2200090527c791be8aa126742a776d.tar.gz |
cssnode: Track invalid flag
Remove it from GtkStyleContext.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r-- | gtk/gtkcssnodeprivate.h | 6 |
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); |