Commit Graph

4 Commits

Author SHA1 Message Date
Stefano Mazzucco 787f9ccf84 Drop support for Awesome < 4.2 2019-11-10 15:39:05 +00:00
Stefano Mazzucco e6b42f7d3a Remove redundant call to "attach" method
We don't need to call "attach" since we connect the signals to "toggle" the
calendar on mouse enter/leave.
2017-11-07 21:40:23 +00:00
Stefano Mazzucco 761bb2fa12 Check whether calendar_popup exists rather than awesome.version
It may happen that the version string on certain builds of awesome is **not**
"v.4.2" but just "4.2". This makes the existing check ineffective.

Moreover, the calendar API is likely to be kept in further releases of
Awesome. The current code would fail e.g. for version 4.2.1 or 4.3

It's much more effective checking whether the calendar API exists on
awful.widget rather than trying to check the version of awesome.
2017-10-05 23:43:09 +01:00
Stefano Mazzucco 057d7bbe9d Add calendar.lua and README 2017-07-20 23:11:54 +01:00