aboutsummaryrefslogtreecommitdiffstats
path: root/app/msglist.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2024-02-12 06:26:15 -0600
committerRobin Jarry <robin@jarry.cc>2024-02-12 13:48:42 +0100
commit63b9706441719b53b3504733c51c2387fce9019d (patch)
treed541ead04cfe5082631c7bfd6bd019128cc8cc0b /app/msglist.go
parent4e26faf498b84b90ecd1af3bd6c6e1f2f3e44a6e (diff)
downloadaerc-63b9706441719b53b3504733c51c2387fce9019d.tar.gz
aerc: change event interfaces to vaxis events
Modify the function signature of Event and MouseEvent interfaces to accept vaxis events. Note that because a vaxis event is an empty interface, the implementations are not affected and the events are delivered as they were before Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/msglist.go')
-rw-r--r--app/msglist.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/msglist.go b/app/msglist.go
index 38970123..49529811 100644
--- a/app/msglist.go
+++ b/app/msglist.go
@@ -17,6 +17,7 @@ import (
"git.sr.ht/~rjarry/aerc/log"
"git.sr.ht/~rjarry/aerc/models"
"git.sr.ht/~rjarry/aerc/worker/types"
+ "git.sr.ht/~rockorager/vaxis"
)
type MessageList struct {
@@ -270,7 +271,7 @@ func (ml *MessageList) drawScrollbar(ctx *ui.Context) {
ctx.Fill(0, pillOffset, 1, pillSize, ' ', pillStyle)
}
-func (ml *MessageList) MouseEvent(localX int, localY int, event tcell.Event) {
+func (ml *MessageList) MouseEvent(localX int, localY int, event vaxis.Event) {
if event, ok := event.(*tcell.EventMouse); ok {
switch event.Buttons() {
case tcell.Button1: