Merge branch 'master' into zig-0.14
This commit is contained in:
commit
0a195a4b79
3 changed files with 9 additions and 4 deletions
|
|
@ -93,8 +93,10 @@ pub fn addP(self: *Self, w_: Widget) !*Widget {
|
|||
}
|
||||
|
||||
pub fn remove(self: *Self, w: Widget) void {
|
||||
for (self.widgets.items, 0..) |p, i| if (p.widget.ptr == w.ptr)
|
||||
for (self.widgets.items, 0..) |p, i| if (p.widget.ptr == w.ptr) {
|
||||
self.widgets.orderedRemove(i).widget.deinit(self.allocator);
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
pub fn remove_all(self: *Self) void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue