Re: gtk_container_new_child (was Re: Wrapping Box Container)

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.


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