systray: Enable properties and improve documentation

I spent way too much time trying to figure out why setting "visible" to
false did not work...

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-03-11 18:46:40 +01:00
parent 13dbc558fc
commit 64b964972b
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,7 @@ end
-- @function wibox.widget.systray
local function new(revers)
local ret = wbase.make_widget()
local ret = wbase.make_widget(nil, nil, {enable_properties = true})
gtable.crush(ret, systray, true)
@ -191,6 +191,10 @@ function systray.mt:__call(...)
return instance
end
--@DOC_widget_COMMON@
--@DOC_object_COMMON@
return setmetatable(systray, systray.mt)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80