From ec2cfc7be2e3ff017de3a034bed19806338f7fc4 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 25 May 2016 16:37:04 -0400 Subject: [PATCH] doc: Add a textbox widget default screenshot --- lib/wibox/widget/textbox.lua | 2 ++ tests/examples/wibox/widget/defaults/textbox.lua | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/examples/wibox/widget/defaults/textbox.lua diff --git a/lib/wibox/widget/textbox.lua b/lib/wibox/widget/textbox.lua index ed4b35b0..3d783df6 100644 --- a/lib/wibox/widget/textbox.lua +++ b/lib/wibox/widget/textbox.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_widget_defaults_textbox_EXAMPLE@ -- @author Uli Schlachter -- @author dodo -- @copyright 2010, 2011 Uli Schlachter, dodo diff --git a/tests/examples/wibox/widget/defaults/textbox.lua b/tests/examples/wibox/widget/defaults/textbox.lua new file mode 100644 index 00000000..7de6f9d0 --- /dev/null +++ b/tests/examples/wibox/widget/defaults/textbox.lua @@ -0,0 +1,13 @@ +local parent = ... --DOC_HIDE +local wibox = require("wibox") --DOC_HIDE + +parent:add( --DOC_HIDE + +wibox.widget{ + markup = "This is a textbox!!!", + align = "center", + valign = "center", + widget = wibox.widget.textbox +} + +) --DOC_HIDE