Problem with gtk_image_set and resizes.




I have a set of functions to display an image stream using gtk_images.
This has worked fine for all the cases I've been trying, at least
where all the images have been the same size.  The problem arises when
I try to show a sequence of images where image sizes differ.

In the particular test case I'm working with now (if it matters) the
gtk_image is packed into a vbox, and each element of the image
sequence is shown via gtk_image_set.  The problem is that when (for
example) flipping between two images where the second image is half
the dimensions of the first, the second is never shown in its entirety
(only it's bottom right hand quadrant) and it is centered in the huge
space that was allocated by the previous larger image.  What I want is
for the parent to shrink to fit whichever image is being shown.

I seem to recall some discussion about problems with parent shrinkage
before, I couldn't recall if this was the issue, and I don't recall
any solution.

Help appreciated.

-- 
Rob Browning <rlb@cs.utexas.edu>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94  53 2B 97 F5 D6 4E 39 30



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]