5.13 GTypeValueCopyFunc

Callback: GTypeValueCopyFunc

A procedure given for it is called as (procedure src-value dest-value).

Copies the content of a <GValue> into another.

The dest-value is a <GValue> with zero-filled data section and src-value is a properly initialized <GValue> of same type, or derived type.

The purpose of this function is to copy the contents of src-value into dest-value in a way, that even after src-value has been freed, the contents of dest-value remain valid. String type example:


dest_value->data[0].v_pointer = g_strdup (src_value->data[0].v_pointer);
src-value

Passed: a <GValue>.

the value to copy

dest-value

Passed, for the procedure to fill in: a <GValue>.

the location of the copy