tests: Stop using the legacy layoutbox constructor.

(done in a commit so the CI can test some commits with the old
constructor)
This commit is contained in:
Emmanuel Lepage Vallee 2018-12-28 02:19:26 -05:00
parent f4a0e1fc39
commit b23a2e81c5
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ return { create_wibox = function()
local right_layout = wibox.layout.fixed.horizontal()
local textclock = wibox.widget.textclock()
right_layout:add(textclock)
right_layout:add(awful.widget.layoutbox(1))
right_layout:add(awful.widget.layoutbox{screen=1})
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()

View File

@ -41,7 +41,7 @@ end
-- Use the layoutbox for testing delayed tooltips
local function tooltip_delayed()
local l = awful.widget.layoutbox(1)
local l = awful.widget.layoutbox{screen = 1}
local t = l._layoutbox_tooltip
assert(t)
return l, t
@ -63,7 +63,7 @@ collectable(wibox.layout.align.horizontal())
collectable(awful.widget.launcher({ image = cairo.ImageSurface(cairo.Format.ARGB32, 20, 20), command = "bash" }))
collectable(awful.widget.prompt())
collectable(wibox.widget.textclock())
collectable(awful.widget.layoutbox(1))
collectable(awful.widget.layoutbox{screen=1})
-- Some widgets do things via timer.delayed_call
prepare_for_collect = run_delayed_calls