Implement Container interface in widgets/
This commit is contained in:
parent
a0c2b1caf0
commit
12284487b4
2 changed files with 8 additions and 0 deletions
|
@ -86,6 +86,10 @@ func NewAccountView(conf *config.AccountConfig,
|
||||||
return acct
|
return acct
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (acct *AccountView) Children() []Drawable {
|
||||||
|
return acct.grid.Children()
|
||||||
|
}
|
||||||
|
|
||||||
func (acct *AccountView) OnInvalidate(onInvalidate func(d ui.Drawable)) {
|
func (acct *AccountView) OnInvalidate(onInvalidate func(d ui.Drawable)) {
|
||||||
acct.grid.OnInvalidate(func(_ ui.Drawable) {
|
acct.grid.OnInvalidate(func(_ ui.Drawable) {
|
||||||
onInvalidate(acct)
|
onInvalidate(acct)
|
||||||
|
|
|
@ -49,6 +49,10 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger) *Aerc {
|
||||||
return aerc
|
return aerc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (aerc *Aerc) Children() []Drawable {
|
||||||
|
return aerc.grid.Children()
|
||||||
|
}
|
||||||
|
|
||||||
func (aerc *Aerc) OnInvalidate(onInvalidate func(d libui.Drawable)) {
|
func (aerc *Aerc) OnInvalidate(onInvalidate func(d libui.Drawable)) {
|
||||||
aerc.grid.OnInvalidate(func(_ libui.Drawable) {
|
aerc.grid.OnInvalidate(func(_ libui.Drawable) {
|
||||||
onInvalidate(aerc)
|
onInvalidate(aerc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue