Rename Box.Empty as Clear
This commit is contained in:
parent
408674fd59
commit
f5907a5e71
1 changed files with 2 additions and 2 deletions
4
box.go
4
box.go
|
@ -115,8 +115,8 @@ func (b *Box) AddChild(w ...Widget) {
|
|||
b.children = append(b.children, w...)
|
||||
}
|
||||
|
||||
// Empty removes all children from the widget.
|
||||
func (b *Box) Empty() {
|
||||
// Clear removes all children from the widget.
|
||||
func (b *Box) Clear() {
|
||||
b.Lock()
|
||||
defer b.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in a new issue