aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/tabhost.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-27 07:52:13 +0200
committerReto Brunner <reto@labrat.space>2020-05-27 08:11:40 +0200
commitf06d683688e3d2139b14f67b7e349089e7200bf4 (patch)
treeeee331112cbcfeafdb8cd6ba126d9e51ed72b10a /widgets/tabhost.go
parent0f78f06610c0e8887aba2ae50e99b86477a384b3 (diff)
downloadaerc-f06d683688e3d2139b14f67b7e349089e7200bf4.tar.gz
Remove duration from the status methods
We always set 10 seconds anyhow, might as well do that without repeating ourselfs.
Diffstat (limited to 'widgets/tabhost.go')
-rw-r--r--widgets/tabhost.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/widgets/tabhost.go b/widgets/tabhost.go
index 1322a0aa..b6b3041d 100644
--- a/widgets/tabhost.go
+++ b/widgets/tabhost.go
@@ -1,15 +1,11 @@
package widgets
-import (
- "time"
-)
-
type TabHost interface {
BeginExCommand(cmd string)
SetStatus(status string) *StatusMessage
SetError(err string) *StatusMessage
- PushStatus(text string, expiry time.Duration) *StatusMessage
- PushError(text string, expiry time.Duration) *StatusMessage
- PushSuccess(text string, expiry time.Duration) *StatusMessage
+ PushStatus(text string) *StatusMessage
+ PushError(text string) *StatusMessage
+ PushSuccess(text string) *StatusMessage
Beep()
}