Function Macro

Purplerequest_yes_no

Declaration [src]

#define purple_request_yes_no (
  handle,
  title,
  primary,
  secondary,
  default_action,
  cpar,
  user_data,
  yes_cb,
  no_cb
)

Description [src]

A wrapper for purple_request_action() that uses Yes and No buttons.

This function is not directly available to language bindings.

Parameters

handle

Type: -

The handle, as supplied as the handle parameter to one of the purple_request_* functions.

title

Type: -

The title of the message, or NULL if it should have no title.

primary

Type: -

The main point of the message, or NULL if you’re feeling enigmatic.

secondary

Type: -

Secondary information, or NULL if there is none.

default_action

Type: -

The default action, zero-indexed; if the third action supplied should be the default, supply 2. This should be the action that users are most likely to select.

cpar

Type: -

The PurpleRequestCommonParameters object, which gets unref’ed after this call.

user_data

Type: -

The data to pass to the callback.

yes_cb

Type: -

A PurpleRequestActionCb to call when yes is selected.

no_cb

Type: -

A PurpleRequestActionCb to call when no is selected.