Re: gtk_container_new_child (was Re: Wrapping Box Container)


On Thu, Sep 2, 2010 at 5:38 AM, Tristan Van Berkom
<tristanvb openismus com> wrote:
> On the other hand... since g_object_new() will never return NULL...
> I'm not sure how much this api would be different than simply
> invoking these lines of code:
> gtk_container_add_with_properties (container,
>                                   g_object_new (GTK_TYPE_FOO,
>                                                 "fill", FALSE,
>                                                 NULL),
>                                   "expand", TRUE,
>                                   NULL);

good point, this isn't bad, at least.


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