Function
PurpleAccountOptionlist_new
since: 2.0
Declaration [src]
PurpleAccountOption*
purple_account_option_list_new (
const char* text,
const char* pref_name,
GList* list
)
Description [src]
Creates a new list account option.
The list passed will be owned by the account option, and the strings inside will be freed automatically.
The list is a list of PurpleKeyValuePair items. The key is the label that
should be displayed to the user, and the purple_account_set_string() to
choose that value.
Available since: 2.0
Parameters
text-
Type:
const char*The text of the option.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. pref_name-
Type:
const char*The account preference name for the option.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. list-
Type: A list of
NoneThe key, value list.
The called function takes ownership of the data, and is responsible for freeing it.
Return value
Type: PurpleAccountOption
The account option.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |