Use widget constructor as documented in official docs

This commit is contained in:
Stefano Mazzucco 2019-05-08 15:23:58 +01:00
parent 9a2b6f8ab5
commit 392d37c0b4
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ local icon = {
muted = icon_theme .. "/audio-volume-muted-symbolic" .. icon_extension
}
local widget = wibox.widget.imagebox()
local widget = wibox.widget {
resize = true,
widget = wibox.widget.imagebox
}
widget.tooltip = awful.tooltip({ objects = { widget },})
function widget:update_appearance(v)