Method

GObjectObjectremove_toggle_ref

Declaration

void
g_object_remove_toggle_ref (
  GObject* object,
  GToggleNotify notify,
  gpointer data
)

Description

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

Available since:2.8
This method is not directly available to language bindings.

Parameters

notify

Type: GToggleNotify

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

data

Type: gpointer

Data to pass to notify, or NULL to match any toggle refs with the notify argument.

The argument can be NULL.
The data is owned by the caller of the function.