5.10 GToggleNotify

Callback: GToggleNotify

A procedure given for it is called as (procedure data object is-last-ref).

A callback function used for notification when the state of a toggle reference changes.

See also: g_object_add_toggle_ref()

data

Passed: a foreign pointer, or #f.

Callback data passed to g_object_add_toggle_ref()

object

Passed: a <GObject>.

The object on which g_object_add_toggle_ref() was called.

is-last-ref

Passed: a boolean.

#t if the toggle reference is now the last reference to the object. #f if the toggle reference was the last reference and there are now other references.