diff --git a/lib/wibox/widget/imagebox.lua b/lib/wibox/widget/imagebox.lua index 2137724cd..615240617 100644 --- a/lib/wibox/widget/imagebox.lua +++ b/lib/wibox/widget/imagebox.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_widget_defaults_imagebox_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/widget/defaults/imagebox.lua b/tests/examples/wibox/widget/defaults/imagebox.lua new file mode 100644 index 000000000..9e995225d --- /dev/null +++ b/tests/examples/wibox/widget/defaults/imagebox.lua @@ -0,0 +1,13 @@ +local parent = ... --DOC_HIDE +local wibox = require( "wibox" ) --DOC_HIDE +local beautiful = require( "beautiful" ) --DOC_HIDE + +parent:add( --DOC_HIDE + +wibox.widget { + image = beautiful.awesome_icon, + resize = false, + widget = wibox.widget.imagebox +} + +) --DOC_HIDE