aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 12284487b48690b1b6b0694b747c45512a9dbe2c
parent a0c2b1caf03d0ed8b89de8402fcc14b003969e2c
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 20 Jan 2019 15:08:30 -0500

Implement Container interface in widgets/

Diffstat:
Mwidgets/account.go | 4++++
Mwidgets/aerc.go | 4++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/widgets/account.go b/widgets/account.go @@ -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) diff --git a/widgets/aerc.go b/widgets/aerc.go @@ -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)