Re: Sinkability considered harmful
- From: Owen Taylor <otaylor redhat com>
- To: "Gustavo J. A. M. Carneiro" <gjc inescporto pt>
- Cc: Federico Mena Quintero <federico ximian com>, GTK+ development mailing list <gtk-devel-list gnome org>
- Subject: Re: Sinkability considered harmful
- Date: Tue, 03 Jan 2006 18:52:05 -0500
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]