Fix object code
This commit is contained in:
4
menu.go
4
menu.go
@@ -40,7 +40,7 @@ func newMenu (parent tomo.Window, bounds image.Rectangle, items ...tomo.Object)
|
||||
menu := &Menu { }
|
||||
menu.bounds = bounds
|
||||
menu.parent = parent
|
||||
window, err := menu.parent.NewMenu(menu.bounds)
|
||||
window, err := menu.parent.NewChild(tomo.WindowKindMenu, menu.bounds)
|
||||
if err != nil { return nil, err }
|
||||
menu.Window = window
|
||||
|
||||
@@ -75,7 +75,7 @@ func (this *Menu) TearOff () {
|
||||
if this.parent == nil { return }
|
||||
this.torn = true
|
||||
|
||||
window, err := this.parent.NewChild(this.bounds)
|
||||
window, err := this.parent.NewChild(tomo.WindowKindToolbar, this.bounds)
|
||||
window.SetIcon(tomo.IconListChoose)
|
||||
if err != nil { return }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user