awful.widget: fix list_update function

Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-01-18 17:02:29 +01:00 committed by Julien Danjou
parent d6655d714e
commit dad33fd0dd
1 changed files with 2 additions and 2 deletions

View File

@ -66,12 +66,12 @@ local function list_update(w, buttons, label, data, widgets, objects)
if buttons then
if not data[o] then
data[o] = { }
-- Replace press function by a new one calling with tags as
-- Replace press function by a new one calling with object as
-- argument
for kb, b in ipairs(buttons) do
-- Copy object
data[o][kb] = capi.button(b)
data[o][kb].press = function () b.press(c) end
data[o][kb].press = function () b.press(o) end
end
end
w[k]:buttons(data[o])