doc: Fix the awful.widget.button documentation

It was missing the macros.
This commit is contained in:
Emmanuel Lepage Vallee 2016-08-17 02:55:13 -04:00
parent 46f6d28bdf
commit 732b170cb0
1 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,12 @@
---------------------------------------------------------------------------
-- A simple button widget.
-- @usage local button = awful.widget.button()
-- button:buttons(awful.util.table.join(
-- button:buttons(),
-- awful.button({}, 1, nil, function ()
-- print("Mouse was clicked")
-- end)
-- ))
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @release @AWESOME_VERSION@
@ -49,6 +57,10 @@ function button.mt:__call(...)
return button.new(...)
end
--@DOC_widget_COMMON@
--@DOC_object_COMMON@
return setmetatable(button, button.mt)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80