Class

PurpleAccountSettingStringList

unstable since: 3.0

Description [src]

final class Purple.AccountSettingStringList : Purple.AccountSetting
  implements Gio.ListModel {
  /* No available fields */
}

A string list setting for an account.

The list contains BirbLocalizedString objects and does not allow duplicate ids.

Available since: 3.0

Implements

Constructors

purple_account_setting_string_list_new

Creates a new string list account setting.

unstable since: 3.0

Instance methods

purple_account_setting_string_list_add_item

Adds an item with the given id and localized string.

unstable since: 3.0

purple_account_setting_string_list_get_active_item

Gets the id of the active item.

unstable since: 3.0

purple_account_setting_string_list_set_active_item

Sets the active item.

unstable since: 3.0

Methods inherited from PurpleAccountSetting (9)
purple_account_setting_changed

Emits the changed signal.

unstable since: 3.0

purple_account_setting_get_advanced

Gets whether or not the setting is an “advanced” setting.

unstable since: 3.0

purple_account_setting_get_hint

Gets the hint for the setting.

unstable since: 3.0

purple_account_setting_get_id

Gets the id of the setting.

unstable since: 3.0

purple_account_setting_get_label

Gets the label that should be displayed to the user.

unstable since: 3.0

purple_account_setting_get_weight

Gets the weight of the setting.

unstable since: 3.0

purple_account_setting_set_advanced

Sets whether or not the setting is an “advanced” setting.

unstable since: 3.0

purple_account_setting_set_hint

Sets the hint for the setting.

unstable since: 3.0

purple_account_setting_set_weight

Sets the weight for the setting.

unstable since: 3.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GListModel (5)
g_list_model_get_item

Get the item at position.

g_list_model_get_item_type

Gets the type of the items in list.

g_list_model_get_n_items

Gets the number of items in list.

g_list_model_get_object

Get the item at position.

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

Properties

Purple.AccountSettingStringList:active-item

The id of the active item.

unstable since: 3.0

Purple.AccountSettingStringList:item-type

The type of items. See Gio.ListModelInterface.get_item_type.

unstable since: 3.0

Purple.AccountSettingStringList:n-items

The number of items. See Gio.ListModelInterface.get_n_items.

unstable since: 3.0

Properties inherited from PurpleAccountSetting (5)
Purple.AccountSetting:advanced

Whether or not the setting is an “advanced” setting.

unstable since: 3.0

Purple.AccountSetting:hint

The hint text for the setting.

unstable since: 3.0

Purple.AccountSetting:id

The identifier of the setting.

unstable since: 3.0

Purple.AccountSetting:label

The label that should be displayed to the user.

unstable since: 3.0

Purple.AccountSetting:weight

The weight of the setting.

unstable since: 3.0

Signals

Signals inherited from PurpleAccountSetting (1)
PurpleAccountSetting::changed

Emitted when the value of the setting has changed.

unstable since: 3.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from GListModel (1)
GListModel::items-changed

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Class structure

struct PurpleAccountSettingStringListClass {
  PurpleAccountSettingClass parent_class;
  
}

No description available.

Class members
parent_class: PurpleAccountSettingClass

No description available.