mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
nodeparser: Print debug message before child
This puts the message up top, where it can be seen, and not at the other end of an endless tree of children. Update tests to match.
This commit is contained in:
parent
09af40faeb
commit
124f60593b
@ -2767,13 +2767,13 @@ render_node_print (Printer *p,
|
|||||||
|
|
||||||
start_node (p, "debug");
|
start_node (p, "debug");
|
||||||
|
|
||||||
append_node_param (p, "child", gsk_debug_node_get_child (node));
|
|
||||||
/* TODO: We potentially need to escape certain characters in the message */
|
/* TODO: We potentially need to escape certain characters in the message */
|
||||||
if (message)
|
if (message)
|
||||||
{
|
{
|
||||||
_indent (p);
|
_indent (p);
|
||||||
g_string_append_printf (p->str, "message: \"%s\";\n", message);
|
g_string_append_printf (p->str, "message: \"%s\";\n", message);
|
||||||
}
|
}
|
||||||
|
append_node_param (p, "child", gsk_debug_node_get_child (node));
|
||||||
|
|
||||||
end_node (p);
|
end_node (p);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
debug {
|
debug {
|
||||||
|
message: "I'm a debug node.";
|
||||||
child: container {
|
child: container {
|
||||||
}
|
}
|
||||||
message: "I'm a debug node.";
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user