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;