Re: gtk_container_new_child (was Re: Wrapping Box Container)

2010-09-06 Thread Havoc Pennington
I forgot that GtkWidget::parent already works: g_object_new (TYPE_FOO, parent, box, blah, 42, NULL) This is a pretty nice solution I think. You don't even have to save a pointer to the new object if you aren't doing anything other than adding it to parent and setting a couple of props. Havoc

Re: Wrapping Box Container

2010-09-01 Thread Tristan Van Berkom
On Mon, 2010-08-30 at 22:07 -0400, Havoc Pennington wrote: While I'm making trivial comments about wrap box - there's START/END in several other enums, rather than BEGIN/END (just look through gtkenums.h, wrap box is the only BEGIN) @GTK_WRAP_BOX_SPREAD_EVEN description says evenly

Re: gtk_container_new_child (was Re: Wrapping Box Container)

2010-09-01 Thread Tristan Van Berkom
On Tue, 2010-08-31 at 18:32 -0400, Havoc Pennington wrote: Hi, On Mon, Aug 30, 2010 at 9:51 PM, Havoc Pennington h...@pobox.com wrote: With my proposed padding cleanup though that issue goes away: child = g_object_new(TYPE_MYCHILD, padding, 5, h-align, GTK_ALIGN_FILL_HORIZONTAL, NULL);

Re: Wrapping Box Container

2010-09-01 Thread Havoc Pennington
Hi, On Wed, Sep 1, 2010 at 6:37 AM, Tristan Van Berkom trista...@openismus.com wrote: SPREAD_EVEN is exactly that.. adding extra space between the children as spacing, and there is SPREAD_EXPAND for the other (not sure if that could be better explained). that's what I was saying, just that

Re: Wrapping Box Container

2010-08-31 Thread Murray Cumming
On Mon, 2010-08-30 at 18:20 -0400, Behdad Esfahbod wrote: On 08/24/10 13:42, Tristan Van Berkom wrote: Is this a kind of widget that we are interested in adding to GTK+ ? What are the usecases for such a container? The selection of features looks a bit arbitrary to me. I wanted it for

gtk_container_new_child (was Re: Wrapping Box Container)

2010-08-31 Thread Havoc Pennington
Hi, On Mon, Aug 30, 2010 at 9:51 PM, Havoc Pennington h...@pobox.com wrote: With my proposed padding cleanup though that issue goes away: child = g_object_new(TYPE_MYCHILD, padding, 5, h-align, GTK_ALIGN_FILL_HORIZONTAL, NULL); insert_child(layout, child, 2, GTK_WRAP_BOX_PACK_Y_EXPAND);

Re: Wrapping Box Container

2010-08-30 Thread Behdad Esfahbod
On 08/24/10 13:42, Tristan Van Berkom wrote: Is this a kind of widget that we are interested in adding to GTK+ ? What are the usecases for such a container? The selection of features looks a bit arbitrary to me. behdad ___ gtk-devel-list mailing list

Re: Wrapping Box Container

2010-08-30 Thread Havoc Pennington
it'd be great to avoid the GtkBox stuff I was whining about in the padding thread, e.g. void egg_wrap_box_insert_child (EggWrapBox *layout, GtkWidget *widget,

Re: Wrapping Box Container

2010-08-30 Thread Havoc Pennington
Hi, On Mon, Aug 30, 2010 at 9:51 PM, Havoc Pennington h...@pobox.com wrote: I think guint here is just misleading; it's not like you can use UINT_MAX, GTK uses signed int for most layout internally to avoid screwy bugs caused by subtraction ending up 0. Also public API like set_size_request

Re: Wrapping Box Container

2010-08-30 Thread Havoc Pennington
While I'm making trivial comments about wrap box - there's START/END in several other enums, rather than BEGIN/END (just look through gtkenums.h, wrap box is the only BEGIN) @GTK_WRAP_BOX_SPREAD_EVEN description says evenly distributed between children which I think means as spacing between

Re: Wrapping Box Container

2010-08-24 Thread Tristan Van Berkom
On Wed, 2010-08-25 at 02:42 +0900, Tristan Van Berkom wrote: [...] PS: I've been trying to send this mail all day, at this point from several email addresses... I'm dropping the .tgz attachment and will follow up with another mail after uploading it somewhere if this email does indeed hit the

Re: Wrapping Box Container

2010-08-24 Thread Alberto Ruiz
I'm not even reading the whole email: +1 !!! :-) 2010/8/24 Tristan Van Berkom trista...@openismus.com: On Wed, 2010-08-25 at 02:42 +0900, Tristan Van Berkom wrote: [...] PS: I've been trying to send this mail all day, at this point from several email addresses... I'm dropping the .tgz

Re: Wrapping Box Container

2010-08-24 Thread Matthias Clasen
On Tue, Aug 24, 2010 at 1:42 PM, Tristan Van Berkom trista...@openismus.com wrote: Hi developers,  Last week I was busy writing up a new container widget for GTK+ and would like to propose it for inclusion in 3.0. Hey, sounds like a useful addition. I've actually had it somewhere deep on my

Re: Wrapping Box Container

2010-08-24 Thread Hans Breuer
At 24.08.2010 20:31, Matthias Clasen wrote: On Tue, Aug 24, 2010 at 1:42 PM, Tristan Van Berkom trista...@openismus.com wrote: Hi developers, Last week I was busy writing up a new container widget for GTK+ and would like to propose it for inclusion in 3.0. Hey, sounds like a useful

Re: Wrapping Box Container

2010-08-24 Thread Matthias Clasen
On Tue, Aug 24, 2010 at 1:51 PM, Tristan Van Berkom trista...@openismus.com wrote: On Wed, 2010-08-25 at 02:42 +0900, Tristan Van Berkom wrote: [...] PS: I've been trying to send this mail all day, at this point from several email addresses... I'm dropping the .tgz attachment and will follow