[gtk+] gsk: Improve debug output



commit 8db13c3362f54918f7af424123eea29e6454eac2
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 3 10:32:55 2017 -0400

    gsk: Improve debug output
    
    If we don't have node names, we can still print class names.

 gsk/gskrendernode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index ab14c15..0954c5b 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -270,7 +270,7 @@ gsk_render_node_draw (GskRenderNode *node,
     }
 
   GSK_NOTE (CAIRO, g_print ("Rendering node %s[%p]\n",
-                            node->name,
+                            node->name ? node->name : node->node_class->type_name,
                             node));
 
   node->node_class->draw (node, cr);


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