From c2c8f78cf8d47923230f2b66b50871324a3916a8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 1 Dec 2023 09:11:14 -0800 Subject: [PATCH] apprt/gtk: comments --- src/apprt/gtk/Split.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apprt/gtk/Split.zig b/src/apprt/gtk/Split.zig index 01562bcc5..93558dc36 100644 --- a/src/apprt/gtk/Split.zig +++ b/src/apprt/gtk/Split.zig @@ -114,7 +114,6 @@ pub fn removeBottomRight(self: *Split) void { self.removeChild(self.bottom_right, self.top_left); } -// TODO: Is this Zig-y? fn removeChild( self: *Split, remove: Surface.Container.Elem, @@ -138,7 +137,10 @@ fn removeChild( alloc.destroy(self); } -// TODO: ehhhhhh +// This replaces the element at the given pointer with a new element. +// The ptr must be either top_left or bottom_right (asserted in debug). +// The memory of the old element must be freed or otherwise handled by +// the caller. pub fn replace( self: *Split, ptr: *Surface.Container.Elem,