Adw.PreferencesDialog¶
- Subclasses:
None
Methods¶
- Inherited:
Adw.Dialog (24), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Adw.PreferencesDialog(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A dialog showing application’s preferences.
<picture> <source srcset=”preferences-dialog-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”preferences-dialog.png” alt=”preferences-dialog”> </picture>
The
AdwPreferencesDialog
widget presents an application’s preferences gathered into pages and groups. The preferences are searchable by the user.- CSS nodes
AdwPreferencesDialog
has a main CSS node with the namedialog
and the style class.preferences
.New in version 1.5.
- classmethod new()¶
- Returns:
the newly created
AdwPreferencesDialog
- Return type:
Creates a new
AdwPreferencesDialog
.New in version 1.5.
- add(page)¶
- Parameters:
page (
Adw.PreferencesPage
) – the page to add
Adds a preferences page to self.
New in version 1.5.
- add_toast(toast)¶
- Parameters:
toast (
Adw.Toast
) – a toast
Displays toast.
See [method`ToastOverlay`.add_toast].
New in version 1.5.
- get_search_enabled()¶
- Returns:
whether search is enabled for self.
- Return type:
Gets whether search is enabled for self.
New in version 1.5.
- get_visible_page()¶
- Returns:
the visible page
- Return type:
Gets the currently visible page of self.
New in version 1.5.
- get_visible_page_name()¶
-
Gets the name of currently visible page of self.
New in version 1.5.
- pop_subpage()¶
- Returns:
TRUE
if a page has been popped- Return type:
Pop the visible page from the subpage stack of self.
New in version 1.5.
- push_subpage(page)¶
- Parameters:
page (
Adw.NavigationPage
) – the subpage
Pushes page onto the subpage stack of self.
The page will be automatically removed when popped.
New in version 1.5.
- remove(page)¶
- Parameters:
page (
Adw.PreferencesPage
) – the page to remove
Removes a page from self.
New in version 1.5.
- set_search_enabled(search_enabled)¶
- Parameters:
search_enabled (
bool
) – whether search is enabled
Sets whether search is enabled for self.
New in version 1.5.
- set_visible_page(page)¶
- Parameters:
page (
Adw.PreferencesPage
) – a page of self
Makes page the visible page of self.
New in version 1.5.
Property Details¶
- Adw.PreferencesDialog.props.search_enabled¶
- Name:
search-enabled
- Type:
- Default Value:
- Flags:
Whether search is enabled.
New in version 1.5.
- Adw.PreferencesDialog.props.visible_page¶
- Name:
visible-page
- Type:
- Default Value:
- Flags:
The currently visible page.
New in version 1.5.
- Adw.PreferencesDialog.props.visible_page_name¶
- Name:
visible-page-name
- Type:
- Default Value:
- Flags:
The name of the currently visible page.
See [property`AdwPreferencesDialog`:py:data::visible-page<Adw.PreferencesDialog.props.visible_page>].
New in version 1.5.