[gtk/wip/baedert/for-master: 23/29] bitmask: Add _gtk_allocated_bitmask_to_string
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 23/29] bitmask: Add _gtk_allocated_bitmask_to_string
- Date: Fri, 23 Aug 2019 07:55:14 +0000 (UTC)
commit d3d8e31d8aaa0594149c57c533790eb5c9a46b9b
Author: Timm Bäder <mail baedert org>
Date: Thu Aug 22 17:16:21 2019 +0200
bitmask: Add _gtk_allocated_bitmask_to_string
gtk/gtkallocatedbitmask.c | 10 ++++++++++
gtk/gtkallocatedbitmaskprivate.h | 1 +
2 files changed, 11 insertions(+)
---
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)
diff --git a/gtk/gtkallocatedbitmaskprivate.h b/gtk/gtkallocatedbitmaskprivate.h
index 351f68592a..3076605ab1 100644
--- a/gtk/gtkallocatedbitmaskprivate.h
+++ b/gtk/gtkallocatedbitmaskprivate.h
@@ -42,6 +42,7 @@ typedef struct _GtkBitmask GtkBitmask;
GtkBitmask * _gtk_allocated_bitmask_copy (const GtkBitmask *mask);
void _gtk_allocated_bitmask_free (GtkBitmask *mask);
+char * _gtk_allocated_bitmask_to_string (const GtkBitmask *mask);
void _gtk_allocated_bitmask_print (const GtkBitmask *mask,
GString *string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]