summaryrefslogtreecommitdiff
path: root/gtk/gtkwidgetpaintable.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-24 03:17:23 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-24 04:06:58 +0200
commit73b4a62f5101473cf585f844579922a0e03c376a (patch)
treee728288a7072b8170e48b126e418353c193389c2 /gtk/gtkwidgetpaintable.c
parent49f9d2108dbde96d2d5555f737db0183e4002a8a (diff)
downloadgtk+-73b4a62f5101473cf585f844579922a0e03c376a.tar.gz
snapshot: Redo debug messages
Instead of every snapshot function having debug messages, have an explicit gtk_snapshot_push_debug() function that appends a debug node.
Diffstat (limited to 'gtk/gtkwidgetpaintable.c')
-rw-r--r--gtk/gtkwidgetpaintable.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk/gtkwidgetpaintable.c b/gtk/gtkwidgetpaintable.c
index 81512cb437..d15b1cee4b 100644
--- a/gtk/gtkwidgetpaintable.c
+++ b/gtk/gtkwidgetpaintable.c
@@ -100,18 +100,12 @@ gtk_widget_paintable_paintable_snapshot (GdkPaintable *paintable,
/* need to clip because widgets may draw out of bounds */
gtk_snapshot_push_clip (snapshot,
- &GRAPHENE_RECT_INIT(0, 0, width, height),
- "WidgetPaintableClip<%g,%g>",
- width, height);
+ &GRAPHENE_RECT_INIT(0, 0, width, height));
graphene_matrix_init_scale (&transform,
width / gtk_widget_get_allocated_width (self->widget),
height / gtk_widget_get_allocated_height (self->widget),
1.0);
- gtk_snapshot_push_transform (snapshot,
- &transform,
- "WidgetPaintableScale<%g,%g>",
- width / gtk_widget_get_allocated_width (self->widget),
- height / gtk_widget_get_allocated_height (self->widget));
+ gtk_snapshot_push_transform (snapshot, &transform);
gtk_widget_snapshot (self->widget, snapshot);
@@ -136,7 +130,7 @@ gtk_widget_paintable_paintable_get_current_image (GdkPaintable *paintable)
if (width == 0 || height == 0)
return gdk_paintable_new_empty (width, height);
- snapshot = gtk_snapshot_new (FALSE, "WidgetPaintableCurrentImage");
+ snapshot = gtk_snapshot_new ();
gdk_paintable_snapshot (GDK_PAINTABLE (self),
snapshot,
width, height);