[gtk-list] Re: interactive map?



   John Ellis wrote:

 JE> However, if you mean keep the aspect of the image and resize the window to
 JE> fit
 JE> around the image.
that's what i mean.

 JE> You could catch the "size_allocate" signal from the
 JE> image and
 JE> set the size of the window accordingly. The only problem here is the
 JE> window will
 JE> behave 'weirdly' as it snaps to the aspect of the image when the window is
 JE> resized by the user.
well, in an ideal world he would only be allowed to resize the window so that
the aspect ratio remains. :)
in the real world, he'll have to live with the odd behaviour. it's a map
window, so he won't be resizing it all day, this is mostly a convenience
because what is too big on 640x480 will be too small on 1600x1280, that's why i
want it resizable at all.



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