Class

Adw.PreferencesRow

Description [src]

class Adw.PreferencesRow : Gtk.ListBoxRow {
  parent_instance: GtkListBoxRow
}

A GtkListBoxRow used to present preferences.

The AdwPreferencesRow widget has a title that AdwPreferencesWindow will use to let the user look for a preference. It doesn’t present the title in any way and lets you present the preference as you please.

AdwActionRow and its derivatives are convenient to use as preference rows as they take care of presenting the preference’s title while letting you compose the inputs of the preference around it.

Hierarchy

Hierarchy for Adw.PreferencesRow

Ancestors

  • GtkListBoxRow
  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkActionable
  • GtkBuildable
  • GtkConstraintTarget

Constructors

adw_preferences_row_new

Creates a new AdwPreferencesRow.

Instance methods

adw_preferences_row_get_title

Gets the title of the preference represented by self.

adw_preferences_row_get_use_underline

Gets whether an embedded underline in the title indicates a mnemonic.

adw_preferences_row_set_title

Sets the title of the preference represented by self.

adw_preferences_row_set_use_underline

Sets whether an embedded underline in the title indicates a mnemonic.

Properties

Adw.PreferencesRow:title

The title of the preference represented by this row.

Adw.PreferencesRow:use-underline

Whether an embedded underline in the title indicates a mnemonic.

Class structure

struct AdwPreferencesRowClass {
  GtkListBoxRowClass parent_class;
  
}
Class members
parent_class
GtkListBoxRowClass
 

The parent class