removeToggleRef

open fun removeToggleRef(notify: ToggleNotify)

Removes a reference added with g_object_add_toggle_ref(). The reference count of the object is decreased by one.

Note that if you unref the object on another thread, then @notify might still be invoked after g_object_remove_toggle_ref(), and the object argument might be a dangling pointer. If the object is destroyed on other threads, you must take care of that yourself.

Since

2.8

Parameters

notify

a function to call when this reference is the last reference to the object, or is no longer the last reference.