Fwd: Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
>the point is, you only have to adapt your code if fancy_container_add() >changes, and that can occour regardless of libgobject changes. > >the only relation existing here is: > fancy_container_add() cannot sink GObjects as long as libgobject does not > support floating objects. > >and we'r abo

Re: Fwd: Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Tim Janik
On Thu, 15 Dec 2005, ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: Yevgen Muntyan wrote: New code: object = fancy_not_gtk_object_new(); g_object_ref_sink(object); /* because I don't know what will container do */ fancy_container_add(container, object); g_object_unref(object); What I want the

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Tim Janik
On Thu, 15 Dec 2005, Yevgen Muntyan wrote: I apologize for junk-posting, I'll learn to use mozilla next time. Tim Janik wrote: it's language bindings and container implementations that do this. the floating flag is actually meant to make it easier on the user as outlined in: Let me expand m

Re: Fwd: Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Yevgen Muntyan
ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: What I want the container code to do is assert if an object is not floating, and ref_sink internally. So the user's code will look like: object = fancy_not_gtk_object_new(); fancy_container_add(container, object); Exactly! Code of *your* users wi

Fwd: Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
Yevgen Muntyan wrote: >New code: > >object = fancy_not_gtk_object_new(); >g_object_ref_sink(object); /* because I don't know what will container do */ >fancy_container_add(container, object); >g_object_unref(object); What I want the container code to do is assert if an object is not floating, and

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Yevgen Muntyan
I apologize for junk-posting, I'll learn to use mozilla next time. Tim Janik wrote: it's language bindings and container implementations that do this. the floating flag is actually meant to make it easier on the user as outlined in: Let me expand my code samples: Old code: object = fancy_no

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Yevgen Muntyan
Tim Janik wrote: On Thu, 15 Dec 2005, Yevgen Muntyan wrote: ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: When you are calling your own code, it is not that much to keep track of, but when I write code that is used by 1000 developers it is much easier for me to take care of the reference iss

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Tim Janik
On Thu, 15 Dec 2005, Yevgen Muntyan wrote: ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: When you are calling your own code, it is not that much to keep track of, but when I write code that is used by 1000 developers it is much easier for me to take care of the reference issues inside the API

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-15 Thread Tim Janik
On Wed, 14 Dec 2005, Dave Benson wrote: people who want floating flags could always derive from GtkObject if they don't want to reimplement it... this is not an option for glib-only programs. - dave --- ciaoTJ ___ gtk-devel-list mailing list gtk

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-14 Thread Dave Benson
On Thu, Dec 15, 2005 at 12:33:52AM -0600, Yevgen Muntyan wrote: > ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: > > >When you are calling your own code, it is not that > >much to keep track of, but when I write code that is used by 1000 > >developers it is much easier for me to take care of the r

Re: Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-14 Thread Yevgen Muntyan
ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: When you are calling your own code, it is not that much to keep track of, but when I write code that is used by 1000 developers it is much easier for me to take care of the reference issues inside the API and make the large group of unknown develope

Fwd: Re: GTK_FLOATING broken in 2.9?

2005-12-14 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
Yes, we do really need the floating reference. There is no reason to discourage the code you mentioned when you want to make reusable container objects that have a sane API without requiring the caller to do a bunch of work and potentially introduce bugs. When you are calling your own code, it i