summaryrefslogtreecommitdiff
path: root/gtk/gtkcssnodedeclaration.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-10-10 20:59:57 +0200
committerTimm Bäder <mail@baedert.org>2017-10-10 20:59:57 +0200
commita22ef67b17bfa6e5470fe3115fd74b2de0fc36b3 (patch)
tree8e415b2bcdaa568e2a9f6d830d036b725c0daf56 /gtk/gtkcssnodedeclaration.c
parent7e8f2f61788e112e8c0998fae036c59f388f12df (diff)
downloadgtk+-a22ef67b17bfa6e5470fe3115fd74b2de0fc36b3.tar.gz
cssnodedeclaration: Add gtk_css_node_declaration_to_string
Diffstat (limited to 'gtk/gtkcssnodedeclaration.c')
-rw-r--r--gtk/gtkcssnodedeclaration.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkcssnodedeclaration.c b/gtk/gtkcssnodedeclaration.c
index 05baa4898f..10b5458b02 100644
--- a/gtk/gtkcssnodedeclaration.c
+++ b/gtk/gtkcssnodedeclaration.c
@@ -478,3 +478,13 @@ gtk_css_node_declaration_print (const GtkCssNodeDeclaration *decl,
}
}
}
+
+char *
+gtk_css_node_declaration_to_string (const GtkCssNodeDeclaration *decl)
+{
+ GString *s = g_string_new (NULL);
+
+ gtk_css_node_declaration_print (decl, s);
+
+ return g_string_free (s, FALSE);
+}