diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-05-28 10:32:32 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-05-28 10:32:32 -0400 |
commit | 76a91813d8dc0f0011202f8120fc197097f022aa (patch) | |
tree | ff4cd6581d3af0911954a37550602366d2bb0e2f /widgets/tabhost.go | |
parent | b9af9b5fb1c4f226499ab9c56d3e24f2b9b2db24 (diff) | |
download | aerc-76a91813d8dc0f0011202f8120fc197097f022aa.tar.gz |
Revert "Remove duration from the status methods"
This reverts commit f06d683688e3d2139b14f67b7e349089e7200bf4.
Diffstat (limited to 'widgets/tabhost.go')
-rw-r--r-- | widgets/tabhost.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/widgets/tabhost.go b/widgets/tabhost.go index b6b3041d..1322a0aa 100644 --- a/widgets/tabhost.go +++ b/widgets/tabhost.go @@ -1,11 +1,15 @@ package widgets +import ( + "time" +) + type TabHost interface { BeginExCommand(cmd string) SetStatus(status string) *StatusMessage SetError(err string) *StatusMessage - PushStatus(text string) *StatusMessage - PushError(text string) *StatusMessage - PushSuccess(text string) *StatusMessage + PushStatus(text string, expiry time.Duration) *StatusMessage + PushError(text string, expiry time.Duration) *StatusMessage + PushSuccess(text string, expiry time.Duration) *StatusMessage Beep() } |