diff options
author | Timm Bäder <mail@baedert.org> | 2017-10-10 20:59:57 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-10-10 20:59:57 +0200 |
commit | a22ef67b17bfa6e5470fe3115fd74b2de0fc36b3 (patch) | |
tree | 8e415b2bcdaa568e2a9f6d830d036b725c0daf56 /gtk/gtkcssnodedeclaration.c | |
parent | 7e8f2f61788e112e8c0998fae036c59f388f12df (diff) | |
download | gtk+-a22ef67b17bfa6e5470fe3115fd74b2de0fc36b3.tar.gz |
cssnodedeclaration: Add gtk_css_node_declaration_to_string
Diffstat (limited to 'gtk/gtkcssnodedeclaration.c')
-rw-r--r-- | gtk/gtkcssnodedeclaration.c | 10 |
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); +} |