beautiful: drop getimage()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5f0e651ede
commit
c13654f08d
|
@ -382,7 +382,7 @@ end)
|
|||
awful.hooks.arrange.register(function (screen)
|
||||
local layout = awful.layout.get(screen)
|
||||
if layout then
|
||||
mylayoutbox[screen].image = beautiful.getimage("layout_" .. layout)
|
||||
mylayoutbox[screen].image = image(beautiful["layout_" .. layout])
|
||||
else
|
||||
mylayoutbox[screen].image = nil
|
||||
end
|
||||
|
|
|
@ -87,17 +87,6 @@ function init(path)
|
|||
end
|
||||
end
|
||||
|
||||
--- Return an image from the theme.
|
||||
-- @param imgspec Name of the image key.
|
||||
-- @return The image.
|
||||
function getimage(imgspec)
|
||||
if theme[imgspec] then
|
||||
return capi.image(theme[imgspec])
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
setmetatable(package.loaded[module_name], package.loaded[module_name])
|
||||
|
||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||
|
|
Loading…
Reference in New Issue