From 541f28fc378200629899ecad9c16395354df48be Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Apr 2020 16:38:41 +0200 Subject: pager: update widget names to non-deprecated ones --- pager.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pager.lua') diff --git a/pager.lua b/pager.lua index 23c28df..7bb4e97 100644 --- a/pager.lua +++ b/pager.lua @@ -29,7 +29,7 @@ function Page:update() local fg_focus = beautiful.fg_focus or "#000000" local tb = wibox.widget.textbox(text, true) - local bg = wibox.widget.background(tb, bg) + local bg = wibox.container.background(tb, bg) tb:set_font(font) @@ -60,11 +60,11 @@ function Page:new(tag, index, width, height, pager) local client_container = wibox.layout.flex.vertical() local border_width = beautiful.border_width or 1 - local margin = wibox.layout.margin(client_container) + local margin = wibox.container.margin(client_container) margin:set_top(border_width) margin:set_bottom(border_width) - ret.widget = wibox.layout.constraint(margin, 'exact', width, height) + ret.widget = wibox.container.constraint(margin, 'exact', width, height) ret.client_container = client_container ret.border = margin @@ -110,7 +110,7 @@ local function pager_set_desktop(self, desktop) title:set_align("center") local title_bg = beautiful.bg_focus or "#ffffff" local title_fg = beautiful.fg_focus or "#000000" - local title_container = wibox.widget.background(title, title_bg) + local title_container = wibox.container.background(title, title_bg) title_container:set_fg(title_fg) desktop:connect_signal("desktop:name", -- cgit v1.2.3