[gtk/ngl-rect-borders] nodeparser: Print debug message before child



commit c70da2f6cd8b51ae033ce9ffa2ca4b4d343784db
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Mar 9 00:43:47 2021 -0500

    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.

 gsk/gskrendernodeparser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c
index 8d72f94aa1..dce4a33f36 100644
--- a/gsk/gskrendernodeparser.c
+++ b/gsk/gskrendernodeparser.c
@@ -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);
       }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]