From 26b2065c40565cc5618132c8c0020bb7cef4acb5 Mon Sep 17 00:00:00 2001 From: getzze Date: Fri, 31 Mar 2017 00:25:04 +0100 Subject: [PATCH] Remove deprecated function call --- lib/menubar/utils.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index 75fae3fcc..7c88b3569 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -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