Next: , Previous: parse-g-value, Up: Using GValues


6.5 set-g-value

— Function: set-g-value
     (set-g-value gvalue object type &key zero-g-value unset-g-value (g-value-init t))
gvalue
A foreign pointer to GValue structure
object
An object that is to be assigned to gvalue
type
A GType designator specifying what GType should be set
unset-g-value
A boolean specifying whether to call g-value-unset before assigment.
zero-g-value
A boolean specifying whether to call g-value-zero before assignment
g-value-init
A boolean specifying whether to call g-value-init before assignment

Assigns the object to the gvalue. When GValue is not used, call g-value-unset to deinitialize the GValue.