From 1e41d87709a3047cd05893c4f7aae4d01b04f425 Mon Sep 17 00:00:00 2001 From: Steven Lu Date: Tue, 20 Jan 2026 11:45:01 +0700 Subject: [PATCH] hope to fix --- src/apprt/gtk/class/application.zig | 4 ++-- src/apprt/gtk/class/split_tree.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apprt/gtk/class/application.zig b/src/apprt/gtk/class/application.zig index 0a336fd79..6a07cab84 100644 --- a/src/apprt/gtk/class/application.zig +++ b/src/apprt/gtk/class/application.zig @@ -2406,7 +2406,7 @@ const Action = struct { // If the tree has no splits (only one leaf), this action is not performable. // This allows the key event to pass through to the terminal. - if (!tree.isSplit()) return false; + if (!tree.getIsSplit()) return false; return tree.resize( switch (value.direction) { @@ -2564,7 +2564,7 @@ const Action = struct { // If the tree has no splits (only one leaf), this action is not performable. // This allows the key event to pass through to the terminal. - if (!tree.isSplit()) return false; + if (!tree.getIsSplit()) return false; return surface.as(gtk.Widget).activateAction("split-tree.zoom", null) != 0; }, diff --git a/src/apprt/gtk/class/split_tree.zig b/src/apprt/gtk/class/split_tree.zig index 8d859adca..0ff7e6044 100644 --- a/src/apprt/gtk/class/split_tree.zig +++ b/src/apprt/gtk/class/split_tree.zig @@ -561,7 +561,7 @@ pub const SplitTree = extern struct { )); } - fn getIsSplit(self: *Self) bool { + pub fn getIsSplit(self: *Self) bool { const tree: *const Surface.Tree = self.private().tree orelse &.empty; if (tree.isEmpty()) return false;