Value


Description:

public Value (Type g_type)

Initializes this to store values of the given type, and sets its value to the initial value for type.

This must be called before any other methods on a [struct@GObject.Value], so the value knows what type it’s meant to store.

```c GValue value = G_VALUE_INIT;

g_value_init (&value, SOME_G_TYPE); … g_value_unset (&value); ```

Parameters:

this

a zero-filled (cleared) [struct@GObject.Value] structure

g_type

type the [struct@GObject.Value] should hold values of

Returns:

the [struct@GObject.Value] structure that has been passed in