forked from AuroraMiddleware/gtk
bitmask: Add _gtk_allocated_bitmask_to_string
This commit is contained in:
parent
1bc8f3ac6e
commit
1f11892de4
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user