Function

GObjectparam_spec_variant

Declaration [src]

GParamSpec*
g_param_spec_variant (
  const gchar* name,
  const gchar* nick,
  const gchar* blurb,
  const GVariantType* type,
  GVariant* default_value,
  GParamFlags flags
)

Description [src]

Creates a new GParamSpecVariant instance specifying a GVariant property.

If default_value is floating, it is consumed.

See g_param_spec_internal() for details on property names.

Available since:2.26

Parameters

name const gchar*
 

Canonical name of the property specified.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
nick const gchar*
 

Nick name for the property specified.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
blurb const gchar*
 

Description of the property specified.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
type GVariantType
 

A GVariantType.

 The data is owned by the caller of the function.
default_value GVariant
 

A GVariant of type type to use as the default value, or NULL.

 The argument can be NULL.
 The called function takes ownership of the data, and is responsible for freeing it.
flags GParamFlags
 

Flags for the property specified.

Return value

Returns: GParamSpec
 

The newly created GParamSpec.

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