From 16994f3b1253dd7f2e84bd3d148a02fd594dd342 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 22 Dec 2015 18:31:48 +0100 Subject: [PATCH] Fix API documentation broken in eb8577a424c2fc69d Signed-off-by: Uli Schlachter --- lib/menubar/init.lua | 2 ++ lib/menubar/utils.lua | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/menubar/init.lua b/lib/menubar/init.lua index 75a66480..5c4d3df1 100644 --- a/lib/menubar/init.lua +++ b/lib/menubar/init.lua @@ -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 = {} diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 8025fdb8..1279f1d9 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -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)