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

2010-10-10 Thread Matthias Clasen
On Sun, Oct 10, 2010 at 4:23 AM, Tristan Van Berkom wrote: > >  - It seems you are storing the allocated/requested sizes in your >    GridLine structs, I guess this is convenient for your code's clarity >    but might be confusing to some readers. I think its important >    to at least comment/not

Re: GtkGroupBox and layout ideas for Gtk3

2010-10-10 Thread Havoc Pennington
Hi, On Sun, Oct 10, 2010 at 4:57 PM, Alexander Larsson wrote: > First of all, what happened to Bug 628902 "Add expand flags to > GtkWidget". It seems to have stalled. This would be very useful. > The latest code is on widget-expand-3 branch, fwiw. todo items are: * magic resizability behavior

Re: GtkGroupBox and layout ideas for Gtk3

2010-10-10 Thread Matthias Clasen
On Sun, Oct 10, 2010 at 4:57 PM, Alexander Larsson wrote: > > In Gtk+ this would be done as a GtkGroupBox container with two GtkGroup > hierarchies (one per direction). With the setup in Gtk3 this should be > quite doable. However, there are a few things missing for a perfect > match. Sounds int

GtkGroupBox and layout ideas for Gtk3

2010-10-10 Thread Alexander Larsson
Recently in my copious spare time (i.e. none, being on paternity leave) I've been thinking about doing a Gtk+ container for Gtk3 based on the java GroupLayout layout mechanism. This is a layout system explicitly designed such that it is useful for an intuitive GUI editor (and its not very useful fo

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

2010-10-10 Thread Matthias Clasen
On Sun, Oct 10, 2010 at 4:23 AM, Tristan Van Berkom wrote: >  - in get_preferred_width() and get_preferred_height() it seems >    you do the same request regardless of the request mode... it may >    that you check this somewhere else in your request code but I did >    not see it. > >    its im

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

2010-10-10 Thread Tristan Van Berkom
On Sun, 2010-10-10 at 12:34 -0400, Havoc Pennington wrote: > Hi, > > On Sun, Oct 10, 2010 at 10:41 AM, Tristan Van Berkom > wrote: > > I would only expect the expand to be distributed evenly among > > children as, thats what GtkBox does ;-) > > But the whole point of the exercise is to mop up Gt

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

2010-10-10 Thread Havoc Pennington
Hi, On Sun, Oct 10, 2010 at 10:41 AM, Tristan Van Berkom wrote: > I would only expect the expand to be distributed evenly among > children as, thats what GtkBox does ;-) But the whole point of the exercise is to mop up GtkBox cruft... > I'm not sure that having all the children stop expanding >

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

2010-10-10 Thread Tristan Van Berkom
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 > 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 cont

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

2010-10-10 Thread Havoc Pennington
Hi, On Sun, Oct 10, 2010 at 6:36 AM, Tristan Van Berkom 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

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

2010-10-10 Thread Tristan Van Berkom
On Sun, 2010-10-10 at 17:23 +0900, Tristan Van Berkom wrote: > On Sun, 2010-10-10 at 02:14 -0400, Matthias Clasen wrote: > > On Thu, Oct 7, 2010 at 11:30 AM, Tristan Van Berkom > > wrote: > > > On Thu, 2010-10-07 at 10:55 -0400, Matthias Clasen wrote: > > >> On Thu, Oct 7, 2010 at 10:48 AM, Trista

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

2010-10-10 Thread Tristan Van Berkom
On Sun, 2010-10-10 at 02:14 -0400, Matthias Clasen wrote: > On Thu, Oct 7, 2010 at 11:30 AM, Tristan Van Berkom > wrote: > > On Thu, 2010-10-07 at 10:55 -0400, Matthias Clasen wrote: > >> On Thu, Oct 7, 2010 at 10:48 AM, Tristan Van Berkom > >> wrote: > >> > >> > However I would really appreciate