From 2b5d436792b02c5d00aea57d239bcadb743d76f1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Sep 2024 10:27:28 -0700 Subject: [PATCH] apprt/gtk: log the libadwaita version at startup if we use it --- src/apprt/gtk/App.zig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/apprt/gtk/App.zig b/src/apprt/gtk/App.zig index 2ed178c2f..a1843b9ac 100644 --- a/src/apprt/gtk/App.zig +++ b/src/apprt/gtk/App.zig @@ -107,6 +107,18 @@ pub fn init(core_app: *CoreApp, opts: Options) !App { } } + // If we're using libadwaita, log the version + if ((comptime adwaita.versionAtLeast(0, 0, 0)) and + adwaita.enabled(&config)) + { + log.info("libadwaita version build={s} runtime={}.{}.{}", .{ + c.ADW_VERSION_S, + c.adw_get_major_version(), + c.adw_get_minor_version(), + c.adw_get_micro_version(), + }); + } + // The "none" cursor is used for hiding the cursor const cursor_none = c.gdk_cursor_new_from_name("none", null); errdefer if (cursor_none) |cursor| c.g_object_unref(cursor);