gtk/adw: perform version check at both comptime and runtime

This commit is contained in:
Jeffrey C. Ollie
2024-09-23 11:41:39 -05:00
parent 2805657213
commit 8186e95902

View File

@ -66,7 +66,7 @@ pub const Notebook = union(enum) {
const tab_view: *c.AdwTabView = c.adw_tab_view_new().?;
if (comptime adwaita.versionAtLeast(1, 2, 0)) {
if (comptime adwaita.versionAtLeast(1, 2, 0) and adwaita.versionAtLeast(1, 2, 0)) {
// Adwaita enables all of the shortcuts by default.
// We want to manage keybindings ourselves.
c.adw_tab_view_remove_shortcuts(tab_view, c.ADW_TAB_VIEW_SHORTCUT_ALL_SHORTCUTS);