[gtk+/wip/ebassi/gsk-renderer: 55/58] gtk: Name GSK render nodes



commit 2caa47e16ebaae6febc1269cfb308fa89064dc07
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jul 27 09:39:55 2016 +0100

    gtk: Name GSK render nodes
    
    For debugging purposes it's helpful to name the nodes.

 gtk/gtkwidget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 89888db..1320a68 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -17498,6 +17498,7 @@ gtk_widget_get_render_node (GtkWidget   *widget,
       cairo_t *cr;
 
       tmp = gsk_render_node_new ();
+      gsk_render_node_set_name (tmp, "Draw Fallback");
       gsk_render_node_set_bounds (tmp, &bounds);
       gsk_render_node_set_transform (tmp, &m);
       cr = gsk_render_node_get_draw_context (tmp);
@@ -17520,6 +17521,7 @@ gtk_widget_get_render_node (GtkWidget   *widget,
           cairo_t *cr;
 
           tmp = gsk_render_node_new ();
+          gsk_render_node_set_name (tmp, "Draw Signal Handler");
           gsk_render_node_set_bounds (tmp, &bounds);
           gsk_render_node_set_transform (tmp, &m);
           cr = gsk_render_node_get_draw_context (tmp);


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