Constructor
PurpleRequestFieldAccountnew
unstable since: 3.0
Declaration [src]
PurpleRequestField*
purple_request_field_account_new (
const char* id,
const char* label,
GListModel* model
)
Description [src]
Creates an account field.
Model should be a GListModel containing the accounts to display.
This can be set to an PurpleAccountManager instance to display all
accounts enabled and disabled. purple_account_manager_get_enabled(),
purple_account_manager_get_disabled(), and
purple_account_manager_get_connected_accounts() could also be used directly
or as a list to filter.
Available since: 3.0
Parameters
id-
Type:
const char*The ID.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. label-
Type:
const char*The label.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. model-
Type:
GObjectThe list model containing accounts.
The data is owned by the caller of the function.
Return value
Type: PurpleRequestFieldAccount
The new field.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |