From 862bdcb92a2fa58be3c00239976d3ba825cc6e9a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 12 Oct 2024 09:34:53 -0700 Subject: [PATCH] apprt/gtk: adw about dialog introduces in libadw 1.5.0 Fixes #2433 --- src/apprt/gtk/Window.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apprt/gtk/Window.zig b/src/apprt/gtk/Window.zig index a9130ea26..9f5bc0bad 100644 --- a/src/apprt/gtk/Window.zig +++ b/src/apprt/gtk/Window.zig @@ -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",