Re: Flowing columned container
- From: James Henstridge <james daa com au>
- To: Murray Cumming <murrayc murrayc com>
- Cc: Matthias Clasen <mclasen redhat com>, gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: Flowing columned container
- Date: Sat, 01 May 2004 22:23:05 +0800
Murray Cumming wrote:
Actually, I would not like the widget to gain width as it loses height.
I would just like it to move some of its child widgets around. And if
there is not enough room for the child widgets then it should not allow
the height to be reduced any more.
Does it still seem like the same thing?
Yes it does. I guess I didn't quite explain it right :) In your
example, the minimum required width of the widget increases as the
height changes. The widget could have more width allocated to it, but
you want the minimum width to be dependent on the height.
As an example, consider a container like you described holding twelve
equal sized children. If you size the container such that it can fit 3
rows of children, then you want the minimum width to be enough to fit 4
children across. We want to allow the user to reduce the height of the
container (to give a 2x6 or 1x12 configuration), so we can't use 3 rows
as the minimum height request -- it should be one row.
Similarly, we want to be able to make the container less wide if the
container grows in height so the minimum width request can't be 4 -- it
should be one column for the 12x1 configuration.
However we don't want GTK to resize the container to one row by one
column, which it currently could if the minimum size request was 1 row
by 1 column. This is why the geometry handling would need some changes
to correctly handle the type of container you proposed.
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]