summaryrefslogtreecommitdiff
path: root/gtk/gtkmagnifier.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/gtkmagnifier.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/gtkmagnifier.c')
-rw-r--r--gtk/gtkmagnifier.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkmagnifier.c b/gtk/gtkmagnifier.c
index 40eb6eb881..fce0f0399b 100644
--- a/gtk/gtkmagnifier.c
+++ b/gtk/gtkmagnifier.c
@@ -117,8 +117,7 @@ gtk_magnifier_snapshot (GtkWidget *widget,
return;
gtk_snapshot_push_clip (snapshot,
- &GRAPHENE_RECT_INIT (0, 0, width, height),
- "MagnifierClip");
+ &GRAPHENE_RECT_INIT (0, 0, width, height));
graphene_matrix_init_translate (&transform, &GRAPHENE_POINT3D_INIT (
- CLAMP (priv->x, 0, paintable_width),
@@ -130,7 +129,7 @@ gtk_magnifier_snapshot (GtkWidget *widget,
if (!priv->resize)
graphene_matrix_translate (&transform, &GRAPHENE_POINT3D_INIT (width / 2, height / 2, 0));
- gtk_snapshot_push_transform (snapshot, &transform, "Magnifier transform");
+ gtk_snapshot_push_transform (snapshot, &transform);
gdk_paintable_snapshot (priv->paintable, snapshot, paintable_width, paintable_height);
gtk_snapshot_pop (snapshot);