doc: Fix wibar documentation

I got it wrong in the PR that introduced the beautiful variables.

Too much find&replace...
This commit is contained in:
Emmanuel Lepage Vallee 2017-02-27 16:10:45 -05:00
parent 002aeb1657
commit f24e957c17
2 changed files with 52 additions and 30 deletions

View File

@ -170,6 +170,16 @@
-- @property shape_input -- @property shape_input
-- @param surface._native -- @param surface._native
--- The wibar's shape.
--
-- **Signal:**
--
-- * *property::shape*
--
-- @property shape
-- @tparam gears.shape shape
--- Get or set mouse buttons bindings to a wibox. --- Get or set mouse buttons bindings to a wibox.
-- --
-- @param buttons_table A table of buttons objects, or nothing. -- @param buttons_table A table of buttons objects, or nothing.

View File

@ -35,31 +35,7 @@ local wiboxes = setmetatable({}, {__mode = "v"})
--- If the wibar needs to be stretched to fill the screen. --- If the wibar needs to be stretched to fill the screen.
-- @property stretch -- @property stretch
-- @tparam string stretch -- @tparam boolean stretch
--- The wibar border width.
-- @property border_width
-- @tparam integer border_width
--- The wibar border color.
-- @property border_color
-- @tparam string border_color
--- If the wibar is to be on top of other windows.
-- @property ontop
-- @tparam boolean ontop
--- The wibar's mouse cursor.
-- @property cursor
-- @tparam string cursor
--- The wibar opacity, between 0 and 1.
-- @property opacity
-- @tparam number opacity
--- The window type (desktop, normal, dock, …).
-- @property type
-- @tparam string type
--- The wibar's width. --- The wibar's width.
-- @property width -- @property width
@ -69,20 +45,56 @@ local wiboxes = setmetatable({}, {__mode = "v"})
-- @property height -- @property height
-- @tparam integer height -- @tparam integer height
--- If the wibar needs to be stretched to fill the screen.
-- @beautiful beautiful.stretch
-- @tparam boolean stretch
--- The wibar border width.
-- @beautiful beautiful.border_width
-- @tparam integer border_width
--- The wibar border color.
-- @beautiful beautiful.border_color
-- @tparam string border_color
--- If the wibar is to be on top of other windows.
-- @beautiful beautiful.ontop
-- @tparam boolean ontop
--- The wibar's mouse cursor.
-- @beautiful beautiful.cursor
-- @tparam string cursor
--- The wibar opacity, between 0 and 1.
-- @beautiful beautiful.opacity
-- @tparam number opacity
--- The window type (desktop, normal, dock, …).
-- @beautiful beautiful.type
-- @tparam string type
--- The wibar's width.
-- @beautiful beautiful.width
-- @tparam integer width
--- The wibar's height.
-- @beautiful beautiful.height
-- @tparam integer height
--- The wibar's background color. --- The wibar's background color.
-- @property bg -- @beautiful beautiful.bg
-- @tparam color bg -- @tparam color bg
--- The wibar's background image. --- The wibar's background image.
-- @property bgimage -- @beautiful beautiful.bgimage
-- @tparam surface bgimage -- @tparam surface bgimage
--- The wibar's foreground (text) color. --- The wibar's foreground (text) color.
-- @property fg -- @beautiful beautiful.fg
-- @tparam color fg -- @tparam color fg
--- The wibar's shape. --- The wibar's shape.
-- @property shape -- @beautiful beautiful.shape
-- @tparam gears.shape shape -- @tparam gears.shape shape
-- Compute the margin on one side -- Compute the margin on one side
@ -393,7 +405,7 @@ function awfulwibar.new(arg)
-- The C code scans the table directly, so metatable magic cannot be used. -- The C code scans the table directly, so metatable magic cannot be used.
for _, prop in ipairs { for _, prop in ipairs {
"border_width", "border_color", "arg.font", "opacity", "ontop", "cursor", "border_width", "border_color", "font", "opacity", "ontop", "cursor",
"height", "width", "bgimage", "bg", "fg", "type", "stretch", "shape" "height", "width", "bgimage", "bg", "fg", "type", "stretch", "shape"
} do } do
if (arg[prop] == nil) and beautiful["wibar_"..prop] ~= nil then if (arg[prop] == nil) and beautiful["wibar_"..prop] ~= nil then