PreferencesGroup
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
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.
AdwPreferencesGroup as GtkBuildable
The AdwPreferencesGroup
implementation of the Buildable
interface
supports adding PreferencesRow
’s 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.
CSS nodes
AdwPreferencesGroup
has a single CSS node with name preferencesgroup
.
Accessibility
AdwPreferencesGroup
uses the GTK_ACCESSIBLE_ROLE_GROUP
role.
Constructors
Methods
- class PreferencesGroup
-
- set_description(description: str | None = None) None
Sets the description for
self
.- Parameters:
description – the description
Properties
Fields
- class PreferencesGroup
- parent_instance