Re: [gtk-list] Resize widgets



On Fri, 5 Feb 1999, Ketil Froyn wrote:

> Hi.
> I'm making an image viewer, but i'm having some trouble resizing the
> window when i open a new image.
> Maybe i'm not doing this the best way, but... I have a window with a vbox
> in it. This vbox has a gtkdrawingarea and a hbox with some buttons. When i
> open a new image, i want to resize the drawingarea to the size of the
> image, and i want the window to resize around it. How can i do this? I
> tried to use the source, but i couldn't find anything...

You want to show pixmap in drawing_area? yes --
destroying drawing_area, creating new in size of pixmap and showing
drawing_area should work.


_____
Alexander Kotelnikov
Saint-Petersburg, Russia
mailto:sacha@ak2614.spb.edu



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