awful.button: fix typo in image creation

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-12-29 18:15:09 +01:00
parent 5977408e34
commit 99227dff1b
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ function button(args)
if not args or not args.image then return end if not args or not args.image then return end
local img_release local img_release
if type(args.image) == "string" then if type(args.image) == "string" then
img_release = image(args.image) img_release = capi.image(args.image)
elseif type(args.image) == "image" then elseif type(args.image) == "image" then
img_release = args.image img_release = args.image
else else