Re: floating reference count
- From: Havoc Pennington <hp redhat com>
- To: magaljedi bol com br
- Cc: gtk-list gnome org
- Subject: Re: floating reference count
- Date: 26 Jan 2002 22:42:33 -0500
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]