Function Macro
Purplerequest_accept_cancel
since: 2.0
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.
Available since: 2.0
This function is not directly available to language bindings.
Parameters
handle-
Type:
-The handle, as supplied as the
handleparameter to one of thepurple_request_* functions. title-
Type:
-The title of the message, or
NULLif it should have no title. primary-
Type:
-The main point of the message, or
NULLif you’re feeling enigmatic. secondary-
Type:
-Secondary information, or
NULLif 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
PurpleRequestCommonParametersobject, which gets unref’ed after this call. user_data-
Type:
-The data to pass to the callback.
accept_cb-
Type:
-A
PurpleRequestActionCbto call when accepted is selected. cancel_cb-
Type:
-A
PurpleRequestActionCbto call when cancel is selected.