diff --git a/lib/wibox/widget/progressbar.lua b/lib/wibox/widget/progressbar.lua index e96f9aced..6e4b6ecf1 100644 --- a/lib/wibox/widget/progressbar.lua +++ b/lib/wibox/widget/progressbar.lua @@ -1,6 +1,7 @@ --------------------------------------------------------------------------- --- A progressbar widget. -- +--@DOC_wibox_widget_defaults_progressbar_EXAMPLE@ -- @author Julien Danjou <julien@danjou.info> -- @copyright 2009 Julien Danjou -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/widget/defaults/progressbar.lua b/tests/examples/wibox/widget/defaults/progressbar.lua new file mode 100644 index 000000000..c82957ff9 --- /dev/null +++ b/tests/examples/wibox/widget/defaults/progressbar.lua @@ -0,0 +1,12 @@ +local parent = ... --DOC_HIDE +local wibox = require("wibox") --DOC_HIDE + +parent:add( --DOC_HIDE + +wibox.widget { + max_value = 1, + value = 0.33, + widget = wibox.widget.progressbar +} + +) --DOC_HIDE