Implement Container interface in widgets/

This commit is contained in:
Drew DeVault 2019-01-20 15:08:30 -05:00
parent a0c2b1caf0
commit 12284487b4
2 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,10 @@ func NewAccountView(conf *config.AccountConfig,
return acct
}
func (acct *AccountView) Children() []Drawable {
return acct.grid.Children()
}
func (acct *AccountView) OnInvalidate(onInvalidate func(d ui.Drawable)) {
acct.grid.OnInvalidate(func(_ ui.Drawable) {
onInvalidate(acct)

View File

@ -49,6 +49,10 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger) *Aerc {
return aerc
}
func (aerc *Aerc) Children() []Drawable {
return aerc.grid.Children()
}
func (aerc *Aerc) OnInvalidate(onInvalidate func(d libui.Drawable)) {
aerc.grid.OnInvalidate(func(_ libui.Drawable) {
onInvalidate(aerc)