[gtk/wip/matthiasc/popup] cssnode: Add a getter for invalid
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup] cssnode: Add a getter for invalid
- Date: Mon, 25 Feb 2019 03:11:08 +0000 (UTC)
commit c86d6bf7f03d0386ebe0d18fce56cc6a2dc4d9fd
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 24 21:10:51 2019 -0500
cssnode: Add a getter for invalid
gtk/gtkcssnode.c | 6 ++++++
gtk/gtkcssnodeprivate.h | 1 +
2 files changed, 7 insertions(+)
---
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c
index f940c53b5d..a2c4ecc872 100644
--- a/gtk/gtkcssnode.c
+++ b/gtk/gtkcssnode.c
@@ -1420,3 +1420,9 @@ gtk_css_node_print (GtkCssNode *cssnode,
gtk_css_node_print (node, flags, string, indent + 2);
}
}
+
+gboolean
+gtk_css_node_is_invalid (GtkCssNode *cssnode)
+{
+ return cssnode->invalid;
+}
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 7335fb30da..b7f53f2c5b 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -153,6 +153,7 @@ void gtk_css_node_invalidate_frame_clock
void gtk_css_node_invalidate (GtkCssNode *cssnode,
GtkCssChange change);
void gtk_css_node_validate (GtkCssNode *cssnode);
+gboolean gtk_css_node_is_invalid (GtkCssNode *cssnode);
gboolean gtk_css_node_init_matcher (GtkCssNode *cssnode,
GtkCssMatcher *matcher);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]