forked from AuroraMiddleware/gtk
cssvalue: Add _gtk_css_value_to_string()
This is a tiny wrapper around _gtk_css_value_print(). It's intended for usage in gdb and printf debugging.
This commit is contained in:
parent
41ce29767c
commit
8ad8a4febf
@ -418,6 +418,18 @@ _gtk_css_value_transition (GtkCssValue *start,
|
||||
return start->class->transition (start, end, progress);
|
||||
}
|
||||
|
||||
char *
|
||||
_gtk_css_value_to_string (const GtkCssValue *value)
|
||||
{
|
||||
GString *string;
|
||||
|
||||
g_return_val_if_fail (value != NULL, NULL);
|
||||
|
||||
string = g_string_new (NULL);
|
||||
_gtk_css_value_print (value, string);
|
||||
return g_string_free (string, FALSE);
|
||||
}
|
||||
|
||||
void
|
||||
_gtk_css_value_print (const GtkCssValue *value,
|
||||
GString *string)
|
||||
|
@ -71,6 +71,7 @@ GtkCssValue *_gtk_css_value_transition (GtkCssValue
|
||||
GtkCssValue *end,
|
||||
double progress);
|
||||
|
||||
char * _gtk_css_value_to_string (const GtkCssValue *value);
|
||||
void _gtk_css_value_print (const GtkCssValue *value,
|
||||
GString *string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user