Re: [gtk-list] Re: what's the opposite of the destroy signal?




Tim Janik <timj@gtk.org> writes:
> no resources should ever be allocated in the _new() implementations,
> every widget that comes with a _new() functions that does more than
> creating the widget and optionally setting some (construct)
> arguments in fundamentally broken.
> 

For the benefit of the original poster - the alternative to _new() is
that everything is supposed to happen in _init(), and then if you need
more information to set up the widget (stuff that traditionally would
be arguments to _new()), they should be settable via object arguments.

So then you can create widgets with gtk_widget_new(), similar to the
way you create canvas items.

Havoc



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