Package: gobject

Function gobject:value-object

Lambda List

gobject:value-object (gvalue)

Syntax

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

Arguments

gvalue -- a valid g:value instance of "GObject" derived type
value -- object value of derived "GObject" type

Details

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

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

It is important that your g:value instance 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 instance still exists).
 

See also

#2024-12-22