Re: Sinkability considered harmful



On Tue, 2006-01-03 at 23:43 +0000, Gustavo J. A. M. Carneiro wrote:
>   Completely agree.  Interesting read too.   I'd just like to add one
> more thing.
> 
>   g_object_new *should* always return a new reference, to be owned by
> the caller.  It usually does, except for g_object_new(GTK_TYPE_WINDOW,
> NULL), in which case the caller does not own the object ref.  I don't
> quite understand how this happened.  It should not be due to backward
> compatibility because this is a new API (in glib 2.0). 

See my last mail explaining why g_object_new(GTK_TYPE_WINDOW) is just
like g_object_new(GTK_TYPE_ENTRY). You don't own the initial reference
in either case.

Regards,
						Owen





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