Re: [gtk-list] Re: what's the opposite of the destroy signal?
- From: Havoc Pennington <hp redhat com>
- To: Tim Janik <timj gtk org>
- Cc: Gtk+ MList <gtk-list redhat com>
- Subject: Re: [gtk-list] Re: what's the opposite of the destroy signal?
- Date: 21 Dec 1999 10:54:45 -0500
Tim Janik <email@example.com> 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.
] [Thread Prev