diff --git a/lib/wibox/widget/checkbox.lua b/lib/wibox/widget/checkbox.lua index 65783ca8e..f04cf6640 100644 --- a/lib/wibox/widget/checkbox.lua +++ b/lib/wibox/widget/checkbox.lua @@ -9,6 +9,7 @@ -- @author Emmanuel Lepage Valle -- @copyright 2010 Emmanuel Lepage Vallee -- @widgetmod wibox.widget.checkbox +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local color = require( "gears.color" ) @@ -303,10 +304,6 @@ local function new(checked, args) return ret end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable({}, { __call = function(_, ...) return new(...) end}) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/graph.lua b/lib/wibox/widget/graph.lua index 0c9d3fce8..d10d84082 100644 --- a/lib/wibox/widget/graph.lua +++ b/lib/wibox/widget/graph.lua @@ -14,6 +14,7 @@ -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @widgetmod wibox.widget.graph +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local setmetatable = setmetatable @@ -413,10 +414,6 @@ function graph.mt:__call(...) return graph.new(...) end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(graph, graph.mt) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/imagebox.lua b/lib/wibox/widget/imagebox.lua index 009c921c0..c17be9265 100644 --- a/lib/wibox/widget/imagebox.lua +++ b/lib/wibox/widget/imagebox.lua @@ -21,6 +21,7 @@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @widgetmod wibox.widget.imagebox +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local lgi = require("lgi") @@ -290,10 +291,6 @@ function imagebox.mt:__call(...) return new(...) end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(imagebox, imagebox.mt) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/piechart.lua b/lib/wibox/widget/piechart.lua index 6eb0dae7f..608fdcf6b 100644 --- a/lib/wibox/widget/piechart.lua +++ b/lib/wibox/widget/piechart.lua @@ -8,6 +8,7 @@ -- @author Emmanuel Lepage Valle -- @copyright 2012 Emmanuel Lepage Vallee -- @widgetmod wibox.widget.piechart +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local color = require( "gears.color" ) @@ -260,9 +261,5 @@ local function new(data_list) return ret end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(module, { __call = function(_, ...) return new(...) end }) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/progressbar.lua b/lib/wibox/widget/progressbar.lua index db323b39a..29314caed 100644 --- a/lib/wibox/widget/progressbar.lua +++ b/lib/wibox/widget/progressbar.lua @@ -18,6 +18,7 @@ -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @widgetmod wibox.widget.progressbar +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local setmetatable = setmetatable @@ -520,10 +521,6 @@ function progressbar.mt:__call(...) return progressbar.new(...) end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(progressbar, progressbar.mt) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/separator.lua b/lib/wibox/widget/separator.lua index 9e8215b3f..2ae0daa42 100644 --- a/lib/wibox/widget/separator.lua +++ b/lib/wibox/widget/separator.lua @@ -20,6 +20,7 @@ -- @author Emmanuel Lepage Vallee <elv1313@gmail.com> -- @copyright 2014, 2017 Emmanuel Lepage Vallee -- @widgetmod wibox.widget.separator +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local beautiful = require( "beautiful" ) local base = require( "wibox.widget.base" ) @@ -215,9 +216,5 @@ local function new(args) return ret end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(separator, { __call = function(_, ...) return new(...) end }) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/slider.lua b/lib/wibox/widget/slider.lua index f68de1545..6c6aba2c8 100644 --- a/lib/wibox/widget/slider.lua +++ b/lib/wibox/widget/slider.lua @@ -7,6 +7,7 @@ -- @author Emmanuel Lepage Vallee <elv1313@gmail.com> -- @copyright 2015 Grigory Mishchenko, 2016 Emmanuel Lepage Vallee -- @widgetmod wibox.widget.slider +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local setmetatable = setmetatable @@ -538,10 +539,6 @@ function slider.mt:__call(...) return new(...) end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(slider, slider.mt) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/systray.lua b/lib/wibox/widget/systray.lua index 545398e4d..255bba1e4 100644 --- a/lib/wibox/widget/systray.lua +++ b/lib/wibox/widget/systray.lua @@ -2,6 +2,7 @@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @widgetmod wibox.widget.systray +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local wbase = require("wibox.widget.base") @@ -224,10 +225,6 @@ 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 diff --git a/lib/wibox/widget/textbox.lua b/lib/wibox/widget/textbox.lua index 53ca6842f..7a0341914 100644 --- a/lib/wibox/widget/textbox.lua +++ b/lib/wibox/widget/textbox.lua @@ -1,10 +1,12 @@ --------------------------------------------------------------------------- -- --@DOC_wibox_widget_defaults_textbox_EXAMPLE@ +-- -- @author Uli Schlachter -- @author dodo -- @copyright 2010, 2011 Uli Schlachter, dodo -- @widgetmod wibox.widget.textbox +-- @supermodule wibox.widget.base --------------------------------------------------------------------------- local base = require("wibox.widget.base") @@ -373,10 +375,6 @@ function textbox.mt.__call(_, ...) return new(...) end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(textbox, textbox.mt) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/lib/wibox/widget/textclock.lua b/lib/wibox/widget/textclock.lua index fcabe7df4..5dff77d65 100644 --- a/lib/wibox/widget/textclock.lua +++ b/lib/wibox/widget/textclock.lua @@ -4,6 +4,7 @@ -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @widgetmod wibox.widget.textclock +-- @supermodule wibox.widget.textbox --------------------------------------------------------------------------- local setmetatable = setmetatable @@ -126,10 +127,6 @@ function textclock.mt:__call(...) return new(...) end ---@DOC_widget_COMMON@ - ---@DOC_object_COMMON@ - return setmetatable(textclock, textclock.mt) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80