Re: floating reference count



magaljedi bol com br writes:
> 
> Can anyone explain me what is a
> "floating" reference count (I saw this
> on GTK2.0 GtkObject API Reference)?
> What is the difference between this
> and normal reference count (if any)?
> 

If you read the top of the page on GtkObject it explains this a bit.

The special thing about the floating count is that no one owns it, 
so no one can remove it with gtk_object_unref(). But anyone can 
call gtk_object_sink() which removes the floating reference count if
it exists. And containers do that to widgets placed in the container.

Havoc



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