Method

PurpleRequestFieldset_validator

unstable since: 3.0

Declaration [src]

void
purple_request_field_set_validator (
  PurpleRequestField* field,
  PurpleRequestFieldValidator validator,
  gpointer user_data,
  GDestroyNotify destroy_data
)

Description [src]

Set an additional validator for a field.

Available since: 3.0

Parameters

validator

Type: PurpleRequestFieldValidator

The validator callback, or NULL to disable additional validation.

user_data

Type: gpointer

The data to pass to the validator callback.

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

Type: GDestroyNotify

A cleanup function for user_data.