Remove deprecated function call

This commit is contained in:
getzze 2017-03-31 00:25:04 +01:00
parent b81b2149f6
commit 26b2065c40
1 changed files with 2 additions and 1 deletions

View File

@ -306,7 +306,8 @@ end
-- @tparam number|screen s Screen
-- @treturn int Text width.
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
return utils