Method

PurpleAccountSettingsadd_setting

unstable since: 3.0

Declaration [src]

gboolean
purple_account_settings_add_setting (
  PurpleAccountSettings* settings,
  PurpleAccountSetting* setting
)

Description [src]

Adds a setting to the collection.

If a setting with the same id already exists, a warning will be output and the setting will be freed.

Available since: 3.0

Parameters

setting

Type: PurpleAccountSetting

The setting to add.

The instance takes ownership of the data, and is responsible for freeing it.

Return value

Type: gboolean

True if the setting was added successfully.