about summary refs log tree commit diff stats
path: root/widgets/tabhost.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-05-28 10:32:32 -0400
committerDrew DeVault <sir@cmpwn.com>2020-05-28 10:32:32 -0400
commit76a91813d8dc0f0011202f8120fc197097f022aa (patch)
treeff4cd6581d3af0911954a37550602366d2bb0e2f /widgets/tabhost.go
parentb9af9b5fb1c4f226499ab9c56d3e24f2b9b2db24 (diff)
downloadaerc-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.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/widgets/tabhost.go b/widgets/tabhost.go
index b6b3041..1322a0a 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()
 }
^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44