mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
apprt/gtk: comments
This commit is contained in:
@ -114,7 +114,6 @@ pub fn removeBottomRight(self: *Split) void {
|
|||||||
self.removeChild(self.bottom_right, self.top_left);
|
self.removeChild(self.bottom_right, self.top_left);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Is this Zig-y?
|
|
||||||
fn removeChild(
|
fn removeChild(
|
||||||
self: *Split,
|
self: *Split,
|
||||||
remove: Surface.Container.Elem,
|
remove: Surface.Container.Elem,
|
||||||
@ -138,7 +137,10 @@ fn removeChild(
|
|||||||
alloc.destroy(self);
|
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(
|
pub fn replace(
|
||||||
self: *Split,
|
self: *Split,
|
||||||
ptr: *Surface.Container.Elem,
|
ptr: *Surface.Container.Elem,
|
||||||
|
Reference in New Issue
Block a user