Re: chaining OBJECT_new() functions?
- From: Havoc Pennington <hp redhat com>
- To: Roger Leigh <rleigh whinlatter ukfsn org>
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: chaining OBJECT_new() functions?
- Date: Wed, 23 Feb 2005 21:57:41 -0500
On Sun, 2005-02-20 at 10:53 +0000, Roger Leigh wrote:
>
> Sorry, I meant construction /properties/ (properties created with
> G_PARAM_CONSTRUCT), which are passed to g_object_new() for object
> initialisation.
>
> My understanding (which may be wrong) is that doing anything else in a
> new() function (rather than in the object_init(), object_construct()
> or with a construction parameter) makes is difficult to write language
> bindings.
Yes, the official answer to the question about chaining up to _new() is
that _new() functions should never do anything that can't be done via
g_object_new()
i.e. the parameters to my_widget_new() should be used to set properties
on the widget that could also be set with g_object_new/g_object_set
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]