mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-27 19:16:27 +00:00
apprt/gtk-ng: clean up some changed handlers
This commit is contained in:
@@ -826,8 +826,10 @@ pub fn SplitTree(comptime V: type) type {
|
||||
.copy = &struct {
|
||||
fn copy(self: *Self) callconv(.c) *Self {
|
||||
const ptr = @import("glib").ext.create(Self);
|
||||
const alloc = self.arena.child_allocator;
|
||||
ptr.* = self.clone(alloc) catch @panic("oom");
|
||||
ptr.* = if (self.nodes.len == 0)
|
||||
.empty
|
||||
else
|
||||
self.clone(self.arena.child_allocator) catch @panic("oom");
|
||||
return ptr;
|
||||
}
|
||||
}.copy,
|
||||
|
||||
Reference in New Issue
Block a user