At Sun, 18 Jan 2009 11:48:35 +0100 Julien Danjou wrote: > At 1232210887 time_t, Gregor Best wrote: > > As promised, here comes a (imho) flawless version :) > > *kudos* > > Great job, I pushed it! > > Cheers,
The patch wasn't as flawless as I thought :) I made a typo which leads to the
button functions being called with a nil value as the first parameter. A patch
is attached.
--
Gregor Best
From 40d93290f236ae952907c04b76fc4bcac134e133 Mon Sep 17 00:00:00 2001 From: Gregor Best <[email protected]> Date: Sun, 18 Jan 2009 17:02:29 +0100 Subject: [PATCH] awful.widget: fix list_update function Signed-off-by: Gregor Best <[email protected]> --- lib/awful/widget.lua.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/widget.lua.in b/lib/awful/widget.lua.in index 8f04229..2a460a1 100644 --- a/lib/awful/widget.lua.in +++ b/lib/awful/widget.lua.in @@ -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]) -- 1.6.1
signature.asc
Description: PGP signature
