Skip to content

feat(linux): support GTK 4 (default) and GTK 3 backends across bindings - #68

Merged
lijy91 merged 4 commits into
mainfrom
feat/linux-gtk4-backend
Dec 1, 2026
Merged

lijy91 merged 4 commits into
mainfrom
feat/linux-gtk4-backend

Conversation

@lijy91

@lijy91 lijy91 commented Nov 30, 2026

Copy link
Copy Markdown
Member

Companion workspace PR for libnativeapi/nativeapi-core#103 (core PR: libnativeapi/nativeapi-core#107).

Summary

  • Dart / Flutter (bindings/dart/cnativeapi/hook/build.dart): defaults to GTK 3 (gtk+-3.0, -DNATIVEAPI_LINUX_GTK3) to match Flutter's Linux embedder, with opt-in GTK 4 via hooks.user_defines.cnativeapi.linux_backend: gtk4 or NATIVEAPI_LINUX_BACKEND=GTK4.
  • Rust (bindings/rust/cnativeapi, bindings/rust/nativeapi): follows core's default (GTK 4), with gtk3 Cargo feature or NATIVEAPI_LINUX_BACKEND=GTK3 to select GTK 3.
  • Swift (bindings/swift/Package.swift, Sources/CGTK4): follows core's default (GTK 4 via CGTK4), with NATIVEAPI_LINUX_BACKEND=GTK3 to select CGTK3.
  • CI workflows: updated rust-ci, rust-release, go-ci, python-ci, js-ci, and csharp-ci to install libgtk-4-dev; dart-ci retains libgtk-3-dev.
  • Submodule pointer: updated core to 8ae6874.

@lijy91
lijy91 force-pushed the feat/linux-gtk4-backend branch from 0408d30 to 24bb4e9 Compare December 1, 2026 00:02
@lijy91
lijy91 merged commit 17585ee into main Dec 1, 2026
31 checks passed
@lijy91
lijy91 deleted the feat/linux-gtk4-backend branch December 1, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant