diff options
author | Aylur <[email protected]> | 2024-11-24 00:04:07 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-02 22:34:01 +0100 |
commit | 2f09ed83386b334f0dfb7f376b99739b15e49fc9 (patch) | |
tree | 4be7848780c4145310a5fa69c60661a61c69ca47 /lang/gjs/src/gtk4/app.ts | |
parent | 990f031507b21f8a18c0710016fb76b1f260afe8 (diff) |
gjs gtk4 support
export jsx-runtime
Diffstat (limited to 'lang/gjs/src/gtk4/app.ts')
-rw-r--r-- | lang/gjs/src/gtk4/app.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/gjs/src/gtk4/app.ts b/lang/gjs/src/gtk4/app.ts index 1c51772..7906993 100644 --- a/lang/gjs/src/gtk4/app.ts +++ b/lang/gjs/src/gtk4/app.ts @@ -4,4 +4,10 @@ import { mkApp } from "../_app" Gtk.init() +// users might want to use Adwaita in which case it has to be initialized +// it might be common pitfall to forget it because `App` is not `Adw.Application` +await import("gi://Adw?version=1") + .then(({ default: Adw }) => Adw.init()) + .catch(() => void 0) + export default mkApp(Astal.Application) |