From 4db50647fe8303aa94b33fa87fce6df909255145 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 11 Apr 2009 14:13:20 +0200 Subject: [PATCH] awful.widget.common: remove otable usage Signed-off-by: Julien Danjou --- lib/awful/widget/common.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/widget/common.lua.in b/lib/awful/widget/common.lua.in index 935b7665..d2b5aa91 100644 --- a/lib/awful/widget/common.lua.in +++ b/lib/awful/widget/common.lua.in @@ -7,8 +7,8 @@ -- Grab environment we need local math = math local type = type -local otable = require("otable") local ipairs = ipairs +local setmetatable = setmetatable local capi = { widget = widget, button = button } @@ -16,7 +16,7 @@ local capi = { widget = widget, module("awful.widget.common") -- Private structures -tagwidgets = otable() +tagwidgets = setmetatable({}, { __mode = 'k' }) function list_update(w, buttons, label, data, widgets, objects) -- Hack: if it has been registered as a widget in a wibox,