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.

Ancestors

  • AdwWindow
  • GtkWindow
  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

  • GtkAccessible
  • GtkBuildable
  • GtkConstraintTarget
  • GtkNative
  • GtkRoot
  • GtkShortcutManager

Constructors

adw_preferences_window_new

Creates a new AdwPreferencesWindow.

Instance methods

adw_preferences_window_add

Adds a preferences page to self.

adw_preferences_window_close_subpage

Closes the current subpage.

Deprecated since: 1.4

adw_preferences_window_get_can_navigate_back

Gets whether gestures and shortcuts for closing subpages are enabled.

Deprecated since: 1.4

adw_preferences_window_get_search_enabled

Gets whether search is enabled for self.

adw_preferences_window_get_visible_page

Gets the currently visible page of self.

adw_preferences_window_get_visible_page_name

Gets the name of currently visible page of self.

adw_preferences_window_pop_subpage

Pop the visible page from the subpage stack of self.

Available since: 1.4

adw_preferences_window_present_subpage

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

Deprecated since: 1.4

adw_preferences_window_push_subpage

Pushes page onto the subpage stack of self.

Available since: 1.4

adw_preferences_window_remove

Removes a page from self.

adw_preferences_window_set_can_navigate_back

Sets whether gestures and shortcuts for closing subpages are enabled.

Deprecated since: 1.4

adw_preferences_window_set_search_enabled

Sets whether search is enabled for self.

adw_preferences_window_set_visible_page

Makes page the visible page of self.

adw_preferences_window_set_visible_page_name

Makes the page with the given name visible.

Methods inherited from AdwWindow (4)
adw_window_add_breakpoint

Adds breakpoint to self.

Available since: 1.4

adw_window_get_content

Gets the content widget of self.

adw_window_get_current_breakpoint

Gets the current breakpoint.

Available since: 1.4

adw_window_set_content

Sets the content widget of self.

Properties

Adw.PreferencesWindow:can-navigate-back

Whether gestures and shortcuts for closing subpages are enabled.

Deprecated since: 1.4

Adw.PreferencesWindow:search-enabled

Whether search is enabled.

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

The content widget.

Adw.Window:current-breakpoint

The current breakpoint.

Available since: 1.4

Class structure

struct AdwPreferencesWindowClass {
  AdwWindowClass parent_class;
  
}
Class members
parent_class
AdwWindowClass
 

The parent class.