It derives from <GtkWidget>.
A group of preference rows.
An <AdwPreferencesGroup> represents a
group or tightly related preferences, which in turn are represented by
PreferencesRow.
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
PreferencesDialog to let the user look for a preference.
The PreferencesGroup:separate-rows property can be used to
separate the rows within the group, same as when using the
‘.boxed-list-separate‘ style class instead of .boxed-list.
The <AdwPreferencesGroup> implementation
of the <GtkBuildable> interface supports
adding PreferencesRows to the list by omitting "type". If "type"
is omitted and the widget isn’t a PreferencesRow 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.
<AdwPreferencesGroup> has a single CSS
node with name preferencesgroup.
<AdwPreferencesGroup> uses the
Gtk.AccessibleRole.group role.
parent-instanceThe description for this group of preferences.
Its value is a string, or #f.
Set it with (set! (preferences-group:description self) value).
The header suffix widget.
Displayed above the list, next to the title and description.
Suffixes are commonly used to show a button or a spinner for the whole group.
Its value is a <GtkWidget>, or #f.
Set it with (set! (preferences-group:header-suffix self) value).
Whether to separate rows.
Equivalent to using the ‘.boxed-list-separate‘ style class on a
<GtkListBox> instead of .boxed-list.
Its value is a boolean.
Set it with (set! (preferences-group:separate-rows self) value).
The title for this group of preferences.
Its value is a string, or #f.
Set it with (set! (preferences-group:title self) value).
Adds a child to self.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed: a <GtkWidget>.
the widget to add
Binds model to self.
See list-box:bind-model.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed, or left out: a <GListModel>, or
#f.
a list model to bind
Passed, or left out: a procedure, or #f.
a function creating a row for each item, or NULL in case
model is NULL
See GtkListBoxCreateWidgetFunc
for how it is called.
Not passed: guile-gi supplies it.
user data passed to create-row-func
Not passed: guile-gi supplies it.
function for freeing user-data
See GDestroyNotify for how it is
called.
Gets the description of self.
Passed: a <AdwPreferencesGroup>.
a preferences group
Returned: a string, or #f.
the description of self
Gets the suffix for self’s header.
Passed: a <AdwPreferencesGroup>.
a preferences group
Returned: a <GtkWidget>, or #f.
the suffix for self’s header.
Gets the row at index.
Can return NULL if index is larger than the number of rows
in the group.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed: an unsigned 32-bit integer.
a row index
Returned: a <GtkWidget>, or #f.
the row at index
Gets whether self’s rows are separated.
Passed: a <AdwPreferencesGroup>.
a preferences group
Returned: a boolean.
whether rows are separated
Gets the title of self.
Passed: a <AdwPreferencesGroup>.
a preferences group
Returned: a string.
the title of self
Creates a new <AdwPreferencesGroup>.
Returned: a <GtkWidget>.
the newly created <AdwPreferencesGroup>
Removes a child from self.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed: a <GtkWidget>.
the child to remove
Sets the description for self.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed, or left out: a string, or #f.
the description
Sets the suffix for self’s header.
Displayed above the list, next to the title and description.
Suffixes are commonly used to show a button or a spinner for the whole group.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed, or left out: a <GtkWidget>, or
#f.
the suffix to set
Sets whether self’s rows are separated.
Equivalent to using the ‘.boxed-list-separate‘ style class on a
<GtkListBox> instead of .boxed-list.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed: a boolean.
whether to separate rows
Sets the title for self.
Passed: a <AdwPreferencesGroup>.
a preferences group
Passed: a string.
the title