Package: gobject

Function g-value-object

Lambda List

g-value-object (gvalue)

Syntax

(g-value-object gvalue) => value
(setf (g-value-object gvalue) value)

Arguments

gvalue -- a valid g-value of +g-type-object+ derived type
value -- object value of derived type +g-type-object+

Details

Object contents of gvalue. The g-value-object function gets the contents of a g-value of a derived type +g-type-object+. The (setf g-value-object) function sets the contents of a g-value to value.

The (setf g-value-object) function increases the reference count of value, the g-value holds a reference to value. If you do not wish to increase the reference count of the object, i.e. you wish to pass your current reference to the g-value because you no longer need it, use the g-value-take-object function instead.

It is important that your g-value holds a reference to value, either its own, or one it has taken, to ensure that the object will not be destroyed while the g-value still exists).
 

See also

2021-12-14