awful.widget.common: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6b3c57970e
commit
4db50647fe
|
@ -7,8 +7,8 @@
|
||||||
-- Grab environment we need
|
-- Grab environment we need
|
||||||
local math = math
|
local math = math
|
||||||
local type = type
|
local type = type
|
||||||
local otable = require("otable")
|
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
|
local setmetatable = setmetatable
|
||||||
local capi = { widget = widget,
|
local capi = { widget = widget,
|
||||||
button = button }
|
button = button }
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ local capi = { widget = widget,
|
||||||
module("awful.widget.common")
|
module("awful.widget.common")
|
||||||
|
|
||||||
-- Private structures
|
-- Private structures
|
||||||
tagwidgets = otable()
|
tagwidgets = setmetatable({}, { __mode = 'k' })
|
||||||
|
|
||||||
function list_update(w, buttons, label, data, widgets, objects)
|
function list_update(w, buttons, label, data, widgets, objects)
|
||||||
-- Hack: if it has been registered as a widget in a wibox,
|
-- Hack: if it has been registered as a widget in a wibox,
|
||||||
|
|
Loading…
Reference in New Issue