NewRoot now correctly returns a Root struct
This commit is contained in:
parent
7628903e59
commit
c30ac90577
4
root.go
4
root.go
@ -11,8 +11,8 @@ type Root struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewRoot creates a new container.
|
// NewRoot creates a new container.
|
||||||
func NewRoot (layout tomo.Layout, children ...tomo.Object) *Container {
|
func NewRoot (layout tomo.Layout, children ...tomo.Object) *Root {
|
||||||
this := &Container { }
|
this := &Root { }
|
||||||
this.init(layout, children...)
|
this.init(layout, children...)
|
||||||
this.box.SetRole(tomo.R("objects", "Root"))
|
this.box.SetRole(tomo.R("objects", "Root"))
|
||||||
this.box.SetTag("outer", true)
|
this.box.SetTag("outer", true)
|
||||||
|
Loading…
Reference in New Issue
Block a user