Re: magic expand flag on GtkWidget

2010-09-06 Thread Havoc Pennington
Hi,

On Mon, Sep 6, 2010 at 8:18 PM, Matthias Clasen
 wrote:
> In particular the automatic window resizability will be nice.

Unfortunately this part is scary ;-) a whole lot of the gtkwindow.c
code related to this was last touched by me in 2001, some was last
touched even earlier than that, and I remember having to revise my
rewrite of this code many many times to handle all the corner cases.
But maybe this feature is relatively superficial and won't interact
with the scary stuff, right? ...

But yeah, this is kind of the cool part. At the same time we can fix
gtkwindow to take advantage of natural size to set default size, and I
think in order to do that, we need to constrain the default size to
the monitor work area.

> I do foresee some complications in the expand-propagation for more
> complicated containers, though:
>
> - Just because a tab label expands, the notebook should probably not.
>
> - a table/grid can only expand vertically if it has an entire row of
> vertically expanding children (I think ?)
>

Right. I think the containers should be able to fix this stuff in
their compute_expand.

Also, for similar cases an app may have, they can set an explicit
expand=FALSE on a container and expansion will not propagate upward
any further.

Havoc
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: magic expand flag on GtkWidget

2010-09-06 Thread Matthias Clasen
On Mon, Sep 6, 2010 at 12:53 PM, Havoc Pennington  wrote:
> Hi,
>
> This is a major enough change it should probably hit the list and not
> just bugzilla:
> https://bugzilla.gnome.org/show_bug.cgi?id=628902
>
> The patch needs finishing as noted in the bug but you can already play
> with it, it just is missing some production details.

I like this idea a lot. In particular the automatic window
resizability will be nice.

I do foresee some complications in the expand-propagation for more
complicated containers, though:

- Just because a tab label expands, the notebook should probably not.

- a table/grid can only expand vertically if it has an entire row of
vertically expanding children (I think ?)
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list