Re: Resizing Windows

On Sun, Oct 08, 2000 at 11:43:59PM -0400, Meghal Harish Varia wrote:

> I want to handle resizing so that I maintain a certain ratio between the
> two vertical sections (the big picture on the left should be about 2 times
> as wide as the other vertical slab on the left).
> So I get a configure event.  Now is the best way to do this to dynamically
> recreate the layout (the buttons and everything, resizing them as
> needed?)..

I seem to remember seeing code for a GtkAspect widget (I may be
mis-remembering the name slightly) written by one of the core Gtk
hackers which did exactly what you're asking for.  I don't remember
where I saw it though.  Perhaps someone else will have a reference.

You could also just catch the configure event and call _set_usize() on
each of the widgets that you've packed into the top-level container.

-- John Kodis.

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