diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2010-05-06 01:05:40 +0300 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2010-05-06 01:05:40 +0300 |
commit | e1594f204d3a3c2d2083793c8830f0ebf390ed66 (patch) | |
tree | 03d4bf07d25a27f19d3f3739b0d2be9a3c677f8d /test/gtk-utils.c | |
parent | 2f4f2fb4859931bf6dc5632d8c919e7296736427 (diff) |
test/gtk-utils: Set the size of the window to the size of the image
Diffstat (limited to 'test/gtk-utils.c')
-rw-r--r-- | test/gtk-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gtk-utils.c b/test/gtk-utils.c index 751a164c..0e7cb5cb 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) |