Function Macro

Purplerequest_accept_cancel

Declaration [src]

#define purple_request_accept_cancel (
  handle,
  title,
  primary,
  secondary,
  default_action,
  cpar,
  user_data,
  accept_cb,
  cancel_cb
)

Description [src]

A wrapper for purple_request_action() that uses Accept and Cancel buttons.

This function is not directly available to language bindings

Parameters

handle -
 

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

title -
 

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

primary -
 

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

secondary -
 

Secondary information, or NULL if there is none.

default_action -
 

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 -
 

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

user_data -
 

The data to pass to the callback.

accept_cb -
 

A PurpleRequestActionCb to call when accepted is selected.

cancel_cb -
 

A PurpleRequestActionCb to call when cancel is selected.