On Mon, Sep 19 2011, Zsolt Udvari wrote:

> 2011/9/19 Julien Danjou <[email protected]>:
>> I think it's because table.insert and wibox.widgets is totally
>> incompatible, because table.insert does not honor metatables functions.
>>
>> IIRC, that's the problem and part of the Lua broken design. :|
>
> Hm. And how can I solve this? I'm not lua-expert...

Use indexed access:
  mywibox.widgets[mywibox.widgets.len() + 1] = mywdiget

-- 
Julien Danjou

Attachment: pgpYvAiZZcCk9.pgp
Description: PGP signature

Reply via email to