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

Merge pull request #304 from anandsudhir/make-gcal-interactive

Make google calendar focussable
This commit is contained in:
Anand Sudhir Prayaga
2018-08-22 23:28:15 +02:00
committed by GitHub
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{}),
} }