1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Make google calendar focussable

When there are lot of events, the content in teh widget is hidden and there is no way to view the  upcoming events. Making the widget focussable allows for one to scroll through the list of calendar events using the arrow keys
This commit is contained in:
Anand Sudhir Prayaga 2018-08-22 13:47:44 +02:00
parent 816a3d4194
commit 8f4c53d58a
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ func (widget *Widget) display() {
defer widget.mutex.Unlock() defer widget.mutex.Unlock()
_, timedEvents := widget.sortedEvents() _, timedEvents := widget.sortedEvents()
widget.View.SetTitle(widget.ContextualTitle(widget.Name))
widget.View.SetText(widget.contentFrom(timedEvents)) widget.View.SetText(widget.contentFrom(timedEvents))
} }

View File

@ -17,7 +17,7 @@ type Widget struct {
func NewWidget() *Widget { func NewWidget() *Widget {
widget := Widget{ widget := Widget{
TextWidget: wtf.NewTextWidget("Calendar", "gcal", false), TextWidget: wtf.NewTextWidget("Calendar", "gcal", true),
ch: make(chan struct{}), ch: make(chan struct{}),
} }