Function

Gimpparam_spec_choice

since: 3.0

Declaration [src]

GParamSpec*
gimp_param_spec_choice (
  const gchar* name,
  const gchar* nick,
  const gchar* blurb,
  GimpChoice* choice,
  const gchar* default_value,
  GParamFlags flags
)

Description [src]

Creates a new GimpParamSpecChoice specifying a

G_TYPE_STRING property.

This %GimpParamSpecChoice takes ownership of the reference on choice.

See g_param_spec_internal() for details on property names.

Available since: 3.0

Parameters

name

Type: const gchar*

Canonical name of the property specified.

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

Type: const gchar*

Nick name of the property specified.

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

Type: const gchar*

Description of the property specified.

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

Type: GimpChoice

The %GimpChoice describing allowed choices.

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

Type: const gchar*

No description available.

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

Type: GParamFlags

Flags for the property specified.

Return value

Type: GParamSpec

The newly created GimpParamSpecChoice.

The data is owned by the called function.