summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/showrendernode.c3
-rw-r--r--tests/testblur.c2
-rw-r--r--tests/testtexture.c2
-rw-r--r--tests/testwidgetfocus.c6
4 files changed, 5 insertions, 8 deletions
diff --git a/tests/showrendernode.c b/tests/showrendernode.c
index 3efc1a0daf..d3d7d82fd2 100644
--- a/tests/showrendernode.c
+++ b/tests/showrendernode.c
@@ -73,8 +73,7 @@ gtk_node_view_snapshot (GtkWidget *widget,
gtk_snapshot_push_clip (snapshot,
&GRAPHENE_RECT_INIT (
0, 0,
- gtk_widget_get_width (widget), gtk_widget_get_height (widget)),
- "nodeview clip");
+ gtk_widget_get_width (widget), gtk_widget_get_height (widget)));
gtk_snapshot_append_node (snapshot, self->node);
gtk_snapshot_pop (snapshot);
}
diff --git a/tests/testblur.c b/tests/testblur.c
index 5540d6d760..bbbf888da5 100644
--- a/tests/testblur.c
+++ b/tests/testblur.c
@@ -27,7 +27,7 @@ snapshot_blur (GtkWidget *widget,
{
GtkBlurBox *box = (GtkBlurBox *) widget;
- gtk_snapshot_push_blur (snapshot, box->radius, "blur");
+ gtk_snapshot_push_blur (snapshot, box->radius);
GTK_WIDGET_CLASS (gtk_blur_box_parent_class)->snapshot (widget, snapshot);
diff --git a/tests/testtexture.c b/tests/testtexture.c
index 5b124c94bc..be8400d978 100644
--- a/tests/testtexture.c
+++ b/tests/testtexture.c
@@ -69,7 +69,7 @@ gtk_texture_view_snapshot (GtkWidget *widget,
bounds.size.width = MIN (width, gdk_texture_get_width (self->texture));
bounds.size.height = MIN (height, gdk_texture_get_height (self->texture));
- gtk_snapshot_append_texture (snapshot, self->texture, &bounds, "Texture");
+ gtk_snapshot_append_texture (snapshot, self->texture, &bounds);
}
}
diff --git a/tests/testwidgetfocus.c b/tests/testwidgetfocus.c
index a0a196a50a..fc76ed2235 100644
--- a/tests/testwidgetfocus.c
+++ b/tests/testwidgetfocus.c
@@ -174,8 +174,7 @@ gtk_focus_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot)
bounds.size.height = alloc.height;
gtk_snapshot_append_color (snapshot,
&black,
- &bounds,
- "Crosshair 1");
+ &bounds);
bounds.origin.x = -30;
bounds.origin.y = self->mouse_y;
@@ -183,8 +182,7 @@ gtk_focus_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot)
bounds.size.height = 1;
gtk_snapshot_append_color (snapshot,
&black,
- &bounds,
- "Crosshair 2");
+ &bounds);
layout = gtk_widget_create_pango_layout (widget, NULL);
text = g_strdup_printf ("%.2f×%.2f", self->mouse_x, self->mouse_y);