Specifies the wibox dependency on the menubar utils (#1953)

Only this particular module is needed
This commit is contained in:
Crazy Lemon 2017-07-30 10:42:20 -07:00 committed by Emmanuel Lepage Vallée
parent 60b5df1308
commit 2886095358
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ local theme = require("beautiful")
local lgi = require("lgi")
local gio = lgi.Gio
local glib = lgi.GLib
local wibox = require("wibox")
local w_textbox = require("wibox.widget.textbox")
local gdebug = require("gears.debug")
local protected_call = require("gears.protected_call")
local gstring = require("gears.string")
@ -343,7 +343,7 @@ end
-- @tparam number|screen s Screen
-- @treturn int Text width.
function utils.compute_text_width(text, s)
local w, _ = wibox.widget.textbox(gstring.xml_escape(text)):get_preferred_size(s)
local w, _ = w_textbox(gstring.xml_escape(text)):get_preferred_size(s)
return w
end