It derives from <GtkApplication>.
A base class for Adwaita applications.
<AdwApplication> handles library
initialization by calling init in the default
application:startup signal
handler, in turn chaining up as required by
<GtkApplication>. Therefore, any subclass
of <AdwApplication> should always chain up its
startup handler before using any Adwaita or GTK API.
<AdwApplication> will automatically load
certain resources located in the application’s resource base path (see
application:set-resource-base-path, if
they’re present.
If there’s a resource located at shortcuts-dialog.ui which
defines an ShortcutsDialog with the ID shortcuts_dialog,
<AdwApplication> will set up an
app.shortcuts action that creates and presents this dialog, as
well as a Ctrl? accelerator for it.
If there’s a resource located at style.css,
<AdwApplication> will load styles from it.
This can be used to add custom styles to the application.
<AdwApplication> will also load the following
stylesheets conditionally:
style-dark.css when StyleManager:dark is TRUE.
style-hc.css when the system high contrast preference is enabled.
style-hc-dark.css when the system high contrast preference is
enabled and StyleManager:dark is TRUE.
:::warning These resources are deprecated since 1.9.
Use style.css with the following media queries instead:
prefers-color-scheme: dark for styles used only for dark
appearance.
prefers-contrast: more for styles used only when the system high
contrast preference is enabled.
parent-instanceThe style manager for this application.
This is a convenience property allowing to access
<AdwStyleManager> through property bindings
or expressions.
Its value is a <AdwStyleManager>, or
#f.
It is read only.
Gets the style manager for self.
This is a convenience property allowing to access
<AdwStyleManager> through property bindings
or expressions.
Passed: a <AdwApplication>.
an application
Returned: a <AdwStyleManager>.
the style manager
Creates a new <AdwApplication>.
If application_id is not NULL, then it must be valid. See
application:id-is-valid?.
If no application ID is given then some features (most notably application uniqueness) will be disabled.
Passed: a string, or #f.
The application ID
Passed: a <GApplicationFlags>, or a
list of its symbols, or one of them.
The application flags
Returned: a <AdwApplication>.
the newly created <AdwApplication>