X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3f854a45f578f0a93d9f561bb8d7f574ab5675ee..586c54a25750fd90d91c15ac8eb818b2613de582:/widget/calendar.lua diff --git a/widget/calendar.lua b/widget/calendar.lua index eec14e7..d3e8d4b 100644 --- a/widget/calendar.lua +++ b/widget/calendar.lua @@ -98,7 +98,7 @@ function calendar.attach(widget) awful.button({ }, 5, function () calendar.show(0, 1) end))) end -local function worker(args) +local function factory(args) local args = args or {} calendar.cal = args.cal or "/usr/bin/cal" calendar.attach_to = args.attach_to or {} @@ -117,4 +117,4 @@ local function worker(args) for i, widget in ipairs(calendar.attach_to) do calendar.attach(widget) end end -return setmetatable(calendar, { __call = function(_, ...) return worker(...) end }) +return setmetatable(calendar, { __call = function(_, ...) return factory(...) end })