summaryrefslogtreecommitdiff
path: root/gsk/gskrendernode.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-14 09:52:52 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-14 17:05:04 -0500
commitc56419818fac67cdf653e1254e68553f5371e7aa (patch)
tree36893f9a7495ad4c066bdc54845d927592651720 /gsk/gskrendernode.c
parent782c76c146dc0af26aeea50992f60e346e4f93f5 (diff)
downloadgtk+-c56419818fac67cdf653e1254e68553f5371e7aa.tar.gz
gsk: make logging per-renderer
Add a setter for per-renderer debug flags, and use them where possible. Some places don't have easy access to a renderer, so this is not complete. Also, use g_message instead of g_print throughout.
Diffstat (limited to 'gsk/gskrendernode.c')
-rw-r--r--gsk/gskrendernode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index 0dc0e7628c..a2a4409bc5 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -241,7 +241,7 @@ gsk_render_node_draw (GskRenderNode *node,
if (!GSK_RENDER_MODE_CHECK (GEOMETRY))
{
- GSK_NOTE (CAIRO, g_print ("CLIP = { .x = %g, .y = %g, .width = %g, .height = %g }\n",
+ GSK_NOTE (CAIRO, g_message ("CLIP = { .x = %g, .y = %g, .width = %g, .height = %g }",
node->bounds.origin.x, node->bounds.origin.y,
node->bounds.size.width, node->bounds.size.height));
@@ -249,7 +249,7 @@ gsk_render_node_draw (GskRenderNode *node,
cairo_clip (cr);
}
- GSK_NOTE (CAIRO, g_print ("Rendering node %s[%p]\n",
+ GSK_NOTE (CAIRO, g_message ("Rendering node %s[%p]",
node->name ? node->name : node->node_class->type_name,
node));