Class

AdwPreferencesWindow

Description [src]

class Adw.PreferencesWindow : Adw.Window {
  parent_instance: AdwWindow
}

A window to present an application’s preferences.

preferences-window

The AdwPreferencesWindow widget presents an application’s preferences gathered into pages and groups. The preferences are searchable by the user.

CSS nodes

AdwPreferencesWindow has a main CSS node with the name window and the style class .preferences.

Available since:1.0

Hierarchy

hierarchy this AdwPreferencesWindow implements_0 GtkAccessible this--implements_0 implements_1 GtkBuildable this--implements_1 implements_2 GtkConstraintTarget this--implements_2 implements_3 GtkNative this--implements_3 implements_4 GtkRoot this--implements_4 implements_5 GtkShortcutManager this--implements_5 ancestor_0 AdwWindow ancestor_0--this ancestor_1 AdwWindow ancestor_1--ancestor_0 ancestor_2 GtkWidget ancestor_2--ancestor_1 ancestor_3 GInitiallyUnowned ancestor_3--ancestor_2 ancestor_4 GObject ancestor_4--ancestor_3

Constructors

adw_preferences_window_new

Creates a new AdwPreferencesWindow.

Available since: 1.0

Instance methods

adw_preferences_window_add

Adds a preferences page to self.

Available since: 1.0

adw_preferences_window_add_toast

Displays toast.

Available since: 1.0

adw_preferences_window_close_subpage

Closes the current subpage.

Available since: 1.0

adw_preferences_window_get_can_navigate_back

Gets whether gestures and shortcuts for closing subpages are enabled.

Available since: 1.0

adw_preferences_window_get_search_enabled

Gets whether search is enabled for self.

Available since: 1.0

adw_preferences_window_get_visible_page

Gets the currently visible page of self.

Available since: 1.0

adw_preferences_window_get_visible_page_name

Gets the name of currently visible page of self.

Available since: 1.0

adw_preferences_window_present_subpage

Sets subpage as the window’s subpage and opens it.

Available since: 1.0

adw_preferences_window_remove

Removes a page from self.

Available since: 1.0

adw_preferences_window_set_can_navigate_back

Sets whether gestures and shortcuts for closing subpages are enabled.

Available since: 1.0

adw_preferences_window_set_search_enabled

Sets whether search is enabled for self.

Available since: 1.0

adw_preferences_window_set_visible_page

Makes page the visible page of self.

Available since: 1.0

adw_preferences_window_set_visible_page_name

Makes the page with the given name visible.

Available since: 1.0

Methods inherited from AdwWindow (2)
adw_window_get_content

Gets the content widget of self.

Available since: 1.0

adw_window_set_content

Sets the content widget of self.

Available since: 1.0

Methods inherited from AdwWindow (2)
adw_window_get_content

Gets the content widget of self.

Available since: 1.0

adw_window_set_content

Sets the content widget of self.

Available since: 1.0

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

Properties

Adw.PreferencesWindow:can-navigate-back

Whether gestures and shortcuts for closing subpages are enabled.

Available since: 1.0

Adw.PreferencesWindow:search-enabled

Whether search is enabled.

Available since: 1.0

Adw.PreferencesWindow:visible-page
No description available.
Adw.PreferencesWindow:visible-page-name
No description available.
Properties inherited from AdwWindow (1)
Adw.Window:content

The content widget.

Available since: 1.0

Properties inherited from AdwWindow (1)
Adw.Window:content

The content widget.

Available since: 1.0

Properties inherited from GtkWidget (34)

Signals

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

Class structure

struct AdwPreferencesWindowClass {
  AdwWindowClass parent_class;
  
}
Class members
parent_class
AdwWindowClass
 

The parent class.