From a8505ed019e3513c34d4e4b31148d926870cd7bf Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 25 May 2016 17:56:23 -0400 Subject: [PATCH] doc: Add an imagebox widget default screenshot --- lib/wibox/widget/imagebox.lua | 2 ++ tests/examples/wibox/widget/defaults/imagebox.lua | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/examples/wibox/widget/defaults/imagebox.lua diff --git a/lib/wibox/widget/imagebox.lua b/lib/wibox/widget/imagebox.lua index 2137724c..61524061 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 00000000..9e995225 --- /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