apprt/gtk: adw about dialog introduces in libadw 1.5.0

Fixes #2433
This commit is contained in:
Mitchell Hashimoto
2024-10-12 09:34:53 -07:00
parent c26d1cb28e
commit 862bdcb92a

View File

@ -720,7 +720,10 @@ fn gtkActionAbout(
const icon = "com.mitchellh.ghostty";
const website = "https://github.com/ghostty-org/ghostty";
if (self.isAdwWindow()) {
if ((comptime adwaita.versionAtLeast(1, 5, 0)) and
adwaita.versionAtLeast(1, 5, 0) and
self.isAdwWindow())
{
c.adw_show_about_dialog(
@ptrCast(self.window),
"application-name",