Merge pull request #605 from psychon/api-doc
Fix API documentation broken in eb8577a424
This commit is contained in:
commit
9fec4f71bc
|
@ -122,6 +122,7 @@ end
|
|||
--- Cut item list to return only current page.
|
||||
-- @tparam table all_items All items list.
|
||||
-- @tparam str query Search query.
|
||||
-- @tparam number scr Screen number
|
||||
-- @return table List of items for current page.
|
||||
local function get_current_page(all_items, query, scr)
|
||||
if not instance.prompt.width then
|
||||
|
@ -160,6 +161,7 @@ end
|
|||
|
||||
--- Update the menubar according to the command entered by user.
|
||||
-- @tparam str query Search query.
|
||||
-- @tparam number scr Screen number
|
||||
local function menulist_update(query, scr)
|
||||
query = query or ""
|
||||
shownitems = {}
|
||||
|
|
|
@ -256,6 +256,7 @@ end
|
|||
|
||||
--- Compute textbox width.
|
||||
-- @tparam wibox.widget.textbox textbox Textbox instance.
|
||||
-- @tparam number s Screen number
|
||||
-- @treturn int Text width.
|
||||
function utils.compute_textbox_width(textbox, s)
|
||||
s = s or mouse.screen
|
||||
|
@ -265,6 +266,7 @@ end
|
|||
|
||||
--- Compute text width.
|
||||
-- @tparam str text Text.
|
||||
-- @tparam number s Screen number
|
||||
-- @treturn int Text width.
|
||||
function utils.compute_text_width(text, s)
|
||||
return utils.compute_textbox_width(wibox.widget.textbox(awful_util.escape(text)), s)
|
||||
|
|
Loading…
Reference in New Issue