[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: Sinkability considered harmful
From:       Owen Taylor <otaylor () redhat ! com>
Date:       2006-01-03 23:52:05
Message-ID: 1136332325.8301.19.camel () fresnel ! dumbhippo ! com
[Download RAW message or body]

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


_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic