summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodeprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-28 01:09:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-01-03 09:19:30 -0500
commit68edc47f6a1585c90d8cace2f65c61a2a413b79e (patch)
tree58bf74ba106dcea1d070440e676970092beb450b /gtk/gtkcssnodeprivate.h
parenta6624d803ece178e467230e285cd9d4561b09ca1 (diff)
downloadgtk+-68edc47f6a1585c90d8cace2f65c61a2a413b79e.tar.gz
Add a function to dump CSS nodes and styles
Add a gtk_style_context_to_string function that can serialize a CSS node or tree of nodes, optionally including CSS properties as well. This will be useful in writing tests.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r--gtk/gtkcssnodeprivate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 8624a51678..065b8e72a0 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -171,6 +171,11 @@ GtkWidgetPath * gtk_css_node_create_widget_path (GtkCssNode *
const GtkWidgetPath * gtk_css_node_get_widget_path (GtkCssNode *cssnode);
GtkStyleProviderPrivate *gtk_css_node_get_style_provider(GtkCssNode *cssnode);
+void gtk_css_node_print (GtkCssNode *cssnode,
+ GtkStyleContextPrintFlags flags,
+ GString *string,
+ guint indent);
+
G_END_DECLS
#endif /* __GTK_CSS_NODE_PRIVATE_H__ */