From 150026690cb81c44bfdd972a768c1d5dc19a88c4 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 25 May 2016 15:17:16 -0400 Subject: [PATCH] doc: Add a fixed layout default screenshot --- lib/wibox/layout/fixed.lua | 2 ++ tests/examples/wibox/layout/defaults/fixed.lua | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/examples/wibox/layout/defaults/fixed.lua diff --git a/lib/wibox/layout/fixed.lua b/lib/wibox/layout/fixed.lua index ed3758eb1..57728b586 100644 --- a/lib/wibox/layout/fixed.lua +++ b/lib/wibox/layout/fixed.lua @@ -1,4 +1,6 @@ --------------------------------------------------------------------------- +-- +--@DOC_wibox_layout_defaults_fixed_EXAMPLE@ -- @author Uli Schlachter -- @copyright 2010 Uli Schlachter -- @release @AWESOME_VERSION@ diff --git a/tests/examples/wibox/layout/defaults/fixed.lua b/tests/examples/wibox/layout/defaults/fixed.lua new file mode 100644 index 000000000..0b6f1f825 --- /dev/null +++ b/tests/examples/wibox/layout/defaults/fixed.lua @@ -0,0 +1,10 @@ +local generic_widget = ... --DOC_HIDE +local wibox = require("wibox") --DOC_HIDE + +return --DOC_HIDE +wibox.widget { + generic_widget( "first" ), + generic_widget( "second" ), + generic_widget( "third" ), + layout = wibox.layout.fixed.horizontal +}