From 95f3f8bdf94db8612e55bf86a371a50a33dfc3ed Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Aug 2009 17:02:16 +0200 Subject: [PATCH] telak: fix new proto and update description Signed-off-by: Julien Danjou --- lib/telak.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/telak.lua.in b/lib/telak.lua.in index 80121435..09e7530b 100644 --- a/lib/telak.lua.in +++ b/lib/telak.lua.in @@ -19,7 +19,7 @@ local capi = image = image } ---- Root window image display library +--- Display a remote image on your root window, and update it once in a while. module("telak") local data = setmetatable({}, { __mode = 'k' }) @@ -46,7 +46,7 @@ end -- Default is 300 seconds. -- @return The wibox. You need to attach it to a screen and to set its -- coordinates as you want. -local function new(_, args) +local function new(args) if not args or not args.image then return end -- Create wibox @@ -73,6 +73,6 @@ function delete(w) end end -setmetatable(_M, { __call = new }) +setmetatable(_M, { __call = function(_, ...) return new(...) end }) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80