X backend window sets itself as parent (oops)
This commit is contained in:
parent
275e113e3b
commit
1a66224648
@ -103,6 +103,7 @@ func (window *window) Adopt (child elements.Element) {
|
|||||||
|
|
||||||
// adopt new child
|
// adopt new child
|
||||||
window.child = child
|
window.child = child
|
||||||
|
child.SetParent(window)
|
||||||
if newChild, ok := child.(elements.Themeable); ok {
|
if newChild, ok := child.(elements.Themeable); ok {
|
||||||
newChild.SetTheme(window.theme)
|
newChild.SetTheme(window.theme)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user