forked from AuroraMiddleware/gtk
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");
|
||||
|
||||
append_node_param (p, "child", gsk_debug_node_get_child (node));
|
||||
/* TODO: We potentially need to escape certain characters in the message */
|
||||
if (message)
|
||||
{
|
||||
_indent (p);
|
||||
g_string_append_printf (p->str, "message: \"%s\";\n", message);
|
||||
}
|
||||
append_node_param (p, "child", gsk_debug_node_get_child (node));
|
||||
|
||||
end_node (p);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
debug {
|
||||
message: "I'm a debug node.";
|
||||
child: container {
|
||||
}
|
||||
message: "I'm a debug node.";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user