Application


Object Hierarchy:

Adw.Application Adw.Application Adw.Application Gtk.Application Gtk.Application Gtk.Application->Adw.Application GLib.Application GLib.Application GLib.Application->Gtk.Application GLib.Object GLib.Object GLib.Object->GLib.Application GLib.ActionGroup GLib.ActionGroup GLib.ActionGroup->Adw.Application GLib.ActionGroup->Gtk.Application GLib.ActionGroup->GLib.Application GLib.ActionMap GLib.ActionMap GLib.ActionMap->Adw.Application GLib.ActionMap->Gtk.Application GLib.ActionMap->GLib.Application

Description:

[ CCode ( type_id = "adw_application_get_type ()" ) ]
public class Application : Application, ActionGroup, ActionMap

A base class for Adwaita applications.

`AdwApplication` handles library initialization by calling [func@init] in the default [signal@Gio.Application:AdwApplication:startup ] signal handler, in turn chaining up as required by [class@Gtk.Application]. Therefore, any subclass of `AdwApplication` should always chain up its `startup` handler before using any Adwaita or GTK API.

Automatic Resources

`AdwApplication` will automatically load stylesheets located in the application's resource base path (see [ method@Gio.Application.set_resource_base_path], if they're present.

They can be used to add custom styles to the application, as follows:

  • `style.css` contains styles that are always present.
  • `style-dark.css` contains styles only used when [property@StyleManager:dark] is `TRUE`.
  • `style-hc.css` contains styles used when the system high contrast preference is enabled.
  • `style-hc-dark.css` contains styles used when the system high contrast preference is enabled and [property@StyleManager:dark] is `TRUE`.

Namespace: Adw
Package: libadwaita-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from interface GLib.ActionMap