summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2010-05-06 01:05:40 +0300
committerSøren Sandmann Pedersen <ssp@redhat.com>2010-05-06 01:05:40 +0300
commite1594f204d3a3c2d2083793c8830f0ebf390ed66 (patch)
tree03d4bf07d25a27f19d3f3739b0d2be9a3c677f8d
parent2f4f2fb4859931bf6dc5632d8c919e7296736427 (diff)
test/gtk-utils: Set the size of the window to the size of the image
-rw-r--r--test/gtk-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gtk-utils.c b/test/gtk-utils.c
index 751a164..0e7cb5c 100644
--- a/test/gtk-utils.c
+++ b/test/gtk-utils.c
@@ -92,6 +92,8 @@ show_image (pixman_image_t *image)
height = pixman_image_get_height (image);
stride = pixman_image_get_stride (image);
+ gtk_window_set_default_size (GTK_WINDOW (window), width, height);
+
format = image->bits.format;
if (format == PIXMAN_a8r8g8b8)