Method

GimpChoiceis_deprecated

unstable since: 3.4

Declaration [src]

gboolean
gimp_choice_is_deprecated (
  GimpChoice* choice,
  const gchar* nick,
  const gchar** redirect_to,
  const gchar** reason
)

Description [src]

Lookup whether nick is a deprecated choice or not. If it is deprecated, either redirect_to will be set or reason will be, depending on whether nick was simply renamed or if the deprecation requires a more complex human-readable reason.

Available since: 3.4

Parameters

nick

Type: const gchar*

The nick to lookup.

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

Type: const gchar**

The non-deprecated alias, if any.

The argument will be set by the function.
The argument can be set to NULL by the method.
The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.
reason

Type: const gchar**

The deprecation reason if redirect_to is NULL.

The argument will be set by the function.
The argument can be set to NULL by the method.
The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if nick is deprecated.