mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
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