Merge pull request #1688 from getzze/deprec_menubar

Remove deprecated function call
This commit is contained in:
Emmanuel Lepage Vallée 2017-04-02 21:45:06 -04:00 committed by GitHub
commit 63f78c29a4
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@ end
-- @tparam number|screen s Screen -- @tparam number|screen s Screen
-- @treturn int Text width. -- @treturn int Text width.
function utils.compute_text_width(text, s) function utils.compute_text_width(text, s)
return utils.compute_textbox_width(wibox.widget.textbox(gstring.xml_escape(text)), s) local w, _ = wibox.widget.textbox(gstring.xml_escape(text)):get_preferred_size(s)
return w
end end
return utils return utils