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:
parent
816a3d4194
commit
8f4c53d58a
@ -33,6 +33,7 @@ func (widget *Widget) display() {
|
||||
defer widget.mutex.Unlock()
|
||||
|
||||
_, timedEvents := widget.sortedEvents()
|
||||
widget.View.SetTitle(widget.ContextualTitle(widget.Name))
|
||||
widget.View.SetText(widget.contentFrom(timedEvents))
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ type Widget struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Calendar", "gcal", false),
|
||||
TextWidget: wtf.NewTextWidget("Calendar", "gcal", true),
|
||||
ch: make(chan struct{}),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user