5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 00:41:59 +08:00
wails/v2/internal/frontend
Phil Richards 427fe7e8d3
Init GTK in NewFrontend, not init (#2841)
* Init GTK in `NewFrontend`, not `init`

So apps that have a headless / non-gui mode will be able to run, since
they needn't call `NewFrontend` (which is called by `CreateApp`).
Previously, `init` would call `C.gtk_init` regardless of whether
CreateApp was called.

Also change to call `C.gtk_init_check` with a panic, instead of
`C.gtk_init`, since `gtk_init` just exits the process if it fails,
without a sensible error message.

Fixes #2628.

* Update changelog
2023-08-26 06:41:53 +10:00
..
desktop Init GTK in NewFrontend, not init (#2841) 2023-08-26 06:41:53 +10:00
devserver [v2] DevServer improvements and fixes (#2664) 2023-05-16 09:35:48 +02:00
dispatcher Override error formatting (#2717) 2023-07-13 20:40:22 +10:00
runtime [v2] Add smart default context-menu functionality (backported from v3) (#2748) 2023-06-28 06:35:02 +10:00
calls.go [windows-x] Support calling bound methods 2021-08-13 23:44:24 +10:00
dispatcher.go [windows-x] Update events system to accommodate dev build 2021-08-25 20:54:05 +10:00
events.go Add single listener deregistration (#1969) 2022-10-23 09:03:37 +11:00
frontend.go Add common text clipboard support (#2228) 2023-01-05 16:41:07 +11:00