set_object
Description:
Set the contents of a g_type_object derived Value
to v_object
.
set_object increases the reference count of v_object
(the
Value holds a reference to v_object
). If you do not wish to increase the
reference count of the object (i.e. you wish to pass your current reference to the Value
because you no longer need it), use take_object instead.
It is important that your Value holds a reference to v_object
(either
its own, or one it has taken) to ensure that the object won't be destroyed while the Value
still exists).
Parameters:
this |
a valid Value of g_type_object derived type |
v_object |
object value to be set |