Method
GObjectValueinit_from_instance
since: 2.42
Declaration [src]
void
g_value_init_from_instance (
GValue* value,
GObjectTypeInstance* instance
)
Description [src]
Initializes and sets value from an instantiatable type.
This calls the GTypeValueCollectFunc function for the type
the GValue contains.
Note: The value will be initialised with the exact type of
instance. If you wish to set the value’s type to a different
GType (such as a parent class type), you need to manually call
g_value_init() and g_value_set_instance().
Available since: 2.42
Parameters
instance-
Type:
GTypeInstanceThe instance.
The data is owned by the caller of the method.