summaryrefslogtreecommitdiff
path: root/gtk/gtkallocatedbitmask.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-08-22 17:16:21 +0200
committerTimm Bäder <mail@baedert.org>2019-09-09 17:36:23 +0200
commit1f11892de4515f997818bf5005b02c33faa1c5ff (patch)
treedd9ed55bcf2c73136ebadefec53a64912f2890b6 /gtk/gtkallocatedbitmask.c
parent1bc8f3ac6e8b5ac30e5b1b4565d0aa07767910af (diff)
downloadgtk+-1f11892de4515f997818bf5005b02c33faa1c5ff.tar.gz
bitmask: Add _gtk_allocated_bitmask_to_string
Diffstat (limited to 'gtk/gtkallocatedbitmask.c')
-rw-r--r--gtk/gtkallocatedbitmask.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/gtkallocatedbitmask.c b/gtk/gtkallocatedbitmask.c
index f655e9d6a1..64c3b14b4c 100644
--- a/gtk/gtkallocatedbitmask.c
+++ b/gtk/gtkallocatedbitmask.c
@@ -106,6 +106,16 @@ _gtk_allocated_bitmask_free (GtkBitmask *mask)
g_free (mask);
}
+char *
+_gtk_allocated_bitmask_to_string (const GtkBitmask *mask)
+{
+ GString *str = g_string_new (NULL);
+
+ _gtk_allocated_bitmask_print (mask, str);
+
+ return g_string_free (str, FALSE);
+}
+
void
_gtk_allocated_bitmask_print (const GtkBitmask *mask,
GString *string)