bitmask: Add _gtk_allocated_bitmask_to_string

This commit is contained in:
Timm Bäder 2019-08-22 17:16:21 +02:00
parent 1bc8f3ac6e
commit 1f11892de4
2 changed files with 11 additions and 0 deletions

View File

@ -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)

View File

@ -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);