Method

GrlRelatedKeysset

since: 0.1.10

Declaration [src]

void
grl_related_keys_set (
  GrlRelatedKeys* relkeys,
  GrlKeyID key,
  const GValue* value
)

Description [src]

Sets the value associated with key into relkeys. Old value is freed and the new one is set.

Also, checks that value is compliant with key specification, modifying it accordingly. For instance, if key requires a number between 0 and 10, but value is outside this range, it will be adapted accordingly.

Available since: 0.1.10

Parameters

key

Type: GrlKeyID

Key to change or add.

value

Type: GValue

The new value.

The data is owned by the caller of the method.