Method

PurpleAccountSettingStringListadd_item

unstable since: 3.0

Declaration [src]

gboolean
purple_account_setting_string_list_add_item (
  PurpleAccountSettingStringList* list,
  const char* id,
  const char* label
)

Description [src]

Adds an item with the given id and localized string.

Items with duplicate ids are not allowed.

Available since: 3.0

Parameters

id

Type: const char*

The id.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
label

Type: const char*

The localized string.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

True if the item was added successfully.