any chance of a g_object_newv



Is there any chance of adding a "g_object_newv" function that could
construct an object from an array holding name/value pairs (or
paramspec/value pairs).

As it is, there doesn't seem to be any way to construct an object and set
G_CONSTRUCT_ONLY properties unless you have a va_list.

The code in g_object_new_valist is fairly long and non trivial (and it
accesses some structure members that are marked as private).

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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