awesome/lib/awful/wibox.lua

33 lines
974 B
Lua
Raw Normal View History

---------------------------------------------------------------------------
--- This module is deprecated and has been renamed `awful.wibar`
--
2016-05-07 08:55:23 +02:00
-- @author Emmanuel Lepage Vallee <elv1313@gmail.com>
-- @copyright 2016 Emmanuel Lepage Vallee
-- @release @AWESOME_VERSION@
-- @module awful.wibox
---------------------------------------------------------------------------
2016-05-07 08:55:23 +02:00
local util = require("awful.util")
local wibar = require("awful.wibar")
2016-05-07 08:55:23 +02:00
local function call(_,...)
util.deprecate("awful.wibox has been renamed to awful.wibar")
2016-05-07 08:55:23 +02:00
return wibar(...)
end
local function index(_, k)
util.deprecate("awful.wibox has been renamed to awful.wibar")
2016-05-07 08:55:23 +02:00
return wibar[k]
end
local function newindex(_, k, v)
util.deprecate("awful.wibox has been renamed to awful.wibar")
2016-05-07 08:55:23 +02:00
wibar[k] = v
2016-05-07 08:55:23 +02:00
end
return setmetatable({}, {__call = call, __index = index, __newindex = newindex})
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80