Function

GioSettingsBindSetMapping

Declaration

GVariant*
(* GSettingsBindSetMapping) (
  const GValue* value,
  const GVariantType* expected_type,
  gpointer user_data
)

Description [src]

The type for the function that is used to convert an object property value to a GVariant for storing it in GSettings.

Parameters

value

Type: GValue

A GValue containing the property value to map.

The data is owned by the caller of the function.
expected_type

Type: GVariantType

The GVariantType to create.

The data is owned by the caller of the function.
user_data

Type: gpointer

User data that was specified when the binding was created.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: GVariant

A new GVariant holding the data from value, or NULL in case of an error.

The caller of the function takes ownership of the data, and is responsible for freeing it.