Lines Matching full:reference
21 * MT safe with regards to reference counting.
57 * the two is that the initial reference of a #GInitiallyUnowned is flagged
58 * as a <firstterm>floating</firstterm> reference.
67 * passed in child, no reference of the newly created child is leaked.
70 * reference leaks, it would have to be written as:
78 * The floating reference can be converted into
79 * an ordinary reference by calling g_object_ref_sink().
80 * For already sunken objects (objects that don't have a floating reference
82 * a new reference.
84 * language bindings that provide automated reference and memory ownership
102 * g_obejct_unref (object); // release previously acquired reference
778 * reference cycles.
1953 * @object: #GObject to reference weakly
1957 * Adds a weak reference callback to an object. Weak references are
1961 * strong reference, that is, forces the object to stay alive).
1995 * @object: #GObject to remove a weak reference from
1999 * Removes a weak reference callback to an object.
2038 * Adds a weak reference from weak_pointer to @object to indicate that
2060 * Removes a weak reference from @object that was previously added
2105 * reference.
2109 * Returns: %TRUE if @object has a floating reference
2123 * Increase the reference count of @object, and possibly remove the
2124 * <link linkend="floating-ref">floating</link> reference, if @object
2125 * has a floating reference.
2128 * ownership" of the floating reference, converting it to a normal
2129 * reference by clearing the floating flag while leaving the reference
2131 * adds a new normal referencereference count by one.
2156 * <link linkend="floating-ref">floating</link> object reference.
2158 * #GInitiallyUnowned<!-- -->s are created with a floating reference which
2188 /* Reentrancy here is not as tricky as it seems, because a toggle reference
2198 * @notify: a function to call when this reference is the
2199 * last reference to the object, or is no longer
2200 * the last reference.
2203 * Increases the reference count of the object by one and sets a
2205 * dropped, or when this is already the last reference to the object
2206 * and another reference is established.
2210 * paired references: the strong reference added by
2211 * g_object_add_toggle_ref() and a reverse reference to the proxy
2212 * object which is either a strong reference or weak reference.
2215 * only a weak reference is held in the reverse direction from @object
2217 * @object, a strong reference is held. The @notify callback is called
2218 * when the reference from @object to the proxy object should be
2222 * Since a (normal) reference must be held to the object before
2229 * this reason, you should only ever use a toggle reference if there
2264 /* Set a flag for fast lookup after adding the first toggle reference */
2277 * @notify: a function to call when this reference is the
2278 * last reference to the object, or is no longer
2279 * the last reference.
2282 * Removes a reference added with g_object_add_toggle_ref(). The
2283 * reference count of the object is decreased by one.
2329 * Increases the reference count of @object.
2360 * Decreases the reference count of @object. When its reference count
2392 /* we are about tp remove the last reference */
2415 /* decrement the last reference */
2755 * g_value_set_object() increases the reference count of @v_object
2756 * (the #GValue holds a reference to @v_object). If you do not wish
2757 * to increase the reference count of the object (i.e. you wish to
2758 * pass your current reference to the #GValue because you no longer
2761 * It is important that your #GValue holds a reference to @v_object (either its
2812 * and takes over the ownership of the callers reference to @v_object;
2813 * the caller doesn't have to unref it any more (i.e. the reference
2816 * If you want the #GValue to hold its own reference to @v_object, use
2838 value->data[0].v_pointer = v_object; /* we take over the reference count */
2863 * its reference count.
2886 * by temporarily adding a reference count to @gobject.
3008 * reference count is held on @object during invocation of the