Function
PurpleProtocolActionnew
since: 3.0
Declaration [src]
PurpleProtocolAction*
purple_protocol_action_new (
const gchar* label,
PurpleProtocolActionCallback callback
)
Description [src]
Allocates and returns a new PurpleProtocolAction. Use this to add actions in a list in the get_actions function of the protocol.
Available since: 3.0
Parameters
label
-
Type:
const gchar*
The description of the action to show to the user.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. callback
-
Type:
PurpleProtocolActionCallback
The callback to call when the user selects this action.
Return value
Type: PurpleProtocolAction
The new PurpleProtocolAction
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |