Re: grid widget (was Re: possible removal of GtkWrapBox)



On Sun, 2010-10-10 at 10:10 -0400, Havoc Pennington wrote:
> Hi,
> 
> On Sun, Oct 10, 2010 at 6:36 AM, Tristan Van Berkom
> <tristanvb openismus com> wrote:
> > bottom or right size of the Grid. (if the user wants the
> > grid children not to expand at all, they should only have
> > to pack the whole grid into another container and say that
> > the grid does not expand).
> 
> Or set halign/valign on the grid to something other than FILL right?

Right that would have the same effect.

> 
> I would expect that if the grid gets an allocation above its request,
> that allocation goes first to any expand children, and second just
> centers everything, or creates extra space evenly distributed around
> non-expand children, perhaps. Actually expanding the non-expand
> children seems weird (not least because it means as soon as you add an
> expand child, all the other children stop expanding when they did
> before).

I would only expect the expand to be distributed evenly among 
children as, thats what GtkBox does ;-)

I'm not sure that having all the children stop expanding
when an expand child is added is any worse than having all
the extra column/row spacing suddenly disappear.

While I did add the "spreading" option to the wrap-box for
similar reasons... I'm not sure that there is an added benefit
to exporting more options here... unless it really makes something
possible which was not possible without the option.

Maybe a similar spreading option would be useful for the Grid ?
(i.e. decide whether Grid children EXPAND, or line up at the START
or END, or get spread EVEN)... not sure if it adds any real
value (alternatively you could add an empty widget that just 
expands and takes up space to the left or right of all children
to achieve the same START/END effect).

Cheers,
         -Tristan

> 
> Havoc




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