Class

AdwPreferencesGroup

Description [src]

class Adw.PreferencesGroup : Gtk.Widget {
  parent_instance: GtkWidget
}

A group of preference rows.

preferences-group

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.

Available since:1.0

Hierarchy

hierarchy this AdwPreferencesGroup implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 ancestor_0 GtkWidget ancestor_0--this ancestor_1 GInitiallyUnowned ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Constructors

adw_preferences_group_new

Creates a new AdwPreferencesGroup.

Available since: 1.0

Instance methods

adw_preferences_group_add

Adds a child to self.

Available since: 1.0

adw_preferences_group_get_description

Gets the description of self.

Available since: 1.0

adw_preferences_group_get_header_suffix

Gets the suffix for selfs header.

Available since: 1.1

adw_preferences_group_get_title

Gets the title of self.

Available since: 1.0

adw_preferences_group_remove

Removes a child from self.

Available since: 1.0

adw_preferences_group_set_description

Sets the description for self.

Available since: 1.0

adw_preferences_group_set_header_suffix

Sets the suffix for selfs header.

Available since: 1.1

adw_preferences_group_set_title

Sets the title for self.

Available since: 1.0

Methods inherited from GtkWidget (159)
Methods inherited from GObject (43)

Properties

Adw.PreferencesGroup:description

The description for this group of preferences.

Available since: 1.0

Adw.PreferencesGroup:header-suffix

The header suffix widget.

Available since: 1.1

Adw.PreferencesGroup:title

The title for this group of preferences.

Available since: 1.0

Properties inherited from GtkWidget (34)

Signals

Signals inherited from GtkWidget (13)
Signals inherited from GObject (1)

Class structure

struct AdwPreferencesGroupClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
 

The parent class.