summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimage.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2017-01-11 10:08:58 +0100
committerAlexander Larsson <alexl@redhat.com>2017-01-11 10:22:40 +0100
commit65ad2541d736a699d01642096631984be7d64681 (patch)
tree492d999fd786accf1330ecb74adb37ae8bf3e1ab /gtk/gtkcssimage.c
parent2f453cc57e37638178f0cf2241609e829963af51 (diff)
downloadgtk+-65ad2541d736a699d01642096631984be7d64681.tar.gz
Snapshot: Only record names if inspector is recording
Otherwise we do a lot of allocations and vprintf calls which are not used.
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r--gtk/gtkcssimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c
index d45a3f78d4..aa407f486c 100644
--- a/gtk/gtkcssimage.c
+++ b/gtk/gtkcssimage.c
@@ -107,7 +107,7 @@ gtk_css_image_real_draw (GtkCssImage *image,
cairo_region_t *clip;
clip = cairo_region_create_rectangle (&(cairo_rectangle_int_t) { 0, 0, width, height });
- gtk_snapshot_init (&snapshot, NULL, clip, "Fallback<%s>", G_OBJECT_TYPE_NAME (image));
+ gtk_snapshot_init (&snapshot, NULL, FALSE, clip, "Fallback<%s>", G_OBJECT_TYPE_NAME (image));
gtk_css_image_snapshot (image, &snapshot, width, height);
node = gtk_snapshot_finish (&snapshot);