Class
AdwPreferencesGroup
Description [src]
class Adw.PreferencesGroup : Gtk.Widget {
parent_instance: GtkWidget
}
A group of preference rows.
An AdwPreferencesGroup represents a group or tightly related preferences,
which in turn are represented by AdwPreferencesRow.
To summarize the role of the preferences it gathers, a group can have both a
title and a description. The title will be used by AdwPreferencesWindow
to let the user look for a preference.
AdwPreferencesGroup as GtkBuildable
The AdwPreferencesGroup implementation of the GtkBuildable interface
supports adding AdwPreferencesRows to the list by omitting “type”. If “type”
is omitted and the widget isn’t a AdwPreferencesRow the child is added to
a box below the list.
When the “type” attribute of a child is header-suffix, the child
is set as the suffix on the end of the title and description.
CSS nodes
AdwPreferencesGroup has a single CSS node with name preferencesgroup.
Accessibility
AdwPreferencesGroup uses the GTK_ACCESSIBLE_ROLE_GROUP role.
Constructors
adw_preferences_group_new
Creates a new AdwPreferencesGroup.
Instance methods
adw_preferences_group_add
Adds a child to self.
adw_preferences_group_get_description
Gets the description of self.
adw_preferences_group_get_title
Gets the title of self.
adw_preferences_group_remove
Removes a child from self.
adw_preferences_group_set_description
Sets the description for self.
adw_preferences_group_set_title
Sets the title for self.
Properties
Adw.PreferencesGroup:description
The description for this group of preferences.
Adw.PreferencesGroup:title
The title for this group of preferences.