From 931c6c71f2f522f1ac19563035879a75cdbc12cb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 22 Dec 2025 13:38:46 -0800 Subject: [PATCH] fix up gtk --- src/apprt/gtk/class/global_shortcuts.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apprt/gtk/class/global_shortcuts.zig b/src/apprt/gtk/class/global_shortcuts.zig index 718b371fd..cf0f31a6e 100644 --- a/src/apprt/gtk/class/global_shortcuts.zig +++ b/src/apprt/gtk/class/global_shortcuts.zig @@ -177,7 +177,8 @@ pub const GlobalShortcuts = extern struct { // We only allow global keybinds that map to exactly a single // action for now. TODO: remove this restriction - if (leaf.actions.len != 1) continue; + const actions = leaf.actionsSlice(); + if (actions.len != 1) continue; const trigger = if (key.xdgShortcutFromTrigger( &trigger_buf, @@ -200,7 +201,7 @@ pub const GlobalShortcuts = extern struct { try priv.map.put( alloc, try alloc.dupeZ(u8, trigger), - leaf.actions[0], + actions[0], ); } -- 2.51.2