menubar: Fix a typo in the code

Find/replace error when porting the deprecated code

Regression from 2f105eac86
Fix #1652
See #1072
This commit is contained in:
Emmanuel Lepage Vallee 2017-03-13 03:40:21 -04:00
parent 901df65eb0
commit 05717026b7
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ 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.escape(text)), s)
return utils.compute_textbox_width(wibox.widget.textbox(gstring.xml_escape(text)), s)
end
return utils