From e1594f204d3a3c2d2083793c8830f0ebf390ed66 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Thu, 6 May 2010 01:05:40 +0300 Subject: test/gtk-utils: Set the size of the window to the size of the image --- test/gtk-utils.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3