Class
Adw.PreferencesWindow
Description [src]
class Adw.PreferencesWindow : Adw.Window {
parent_instance: AdwWindow
}
A window to present an application’s preferences.
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
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.
adw_preferences_window_get_can_swipe_back
Gets whether or not self
allows closing subpages via a swipe gesture.
adw_preferences_window_get_search_enabled
Gets whether search is enabled for self
.
adw_preferences_window_present_subpage
Sets subpage
as the window’s subpage and opens it.
adw_preferences_window_remove
Removes a page from self
.
adw_preferences_window_set_can_swipe_back
Sets whether or not self
allows closing subpages via a swipe gesture.
adw_preferences_window_set_search_enabled
Sets whether search is enabled for self
.
Methods inherited from AdwWindow (2)
adw_window_get_child
Gets the child widget of self
.
adw_window_set_child
Sets the child widget of self
.
Properties
Adw.PreferencesWindow:can-swipe-back
Whether or not the window allows closing subpages via a swipe gesture.
Adw.PreferencesWindow:search-enabled
Whether search is enabled.