diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-04-08 16:38:41 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-04-08 16:38:41 +0200 |
commit | 541f28fc378200629899ecad9c16395354df48be (patch) | |
tree | 7b7ad6be70f27c6d43af5076ee9fa77d23959d27 | |
parent | 72d920a6a0e634de90fbeefa55670c4754355101 (diff) |
pager: update widget names to non-deprecated ones
-rw-r--r-- | pager.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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", |