progressbar: keep set_height/set_width working (#1141)
Ref: https://github.com/awesomeWM/awesome/issues/1140
This commit is contained in:
parent
26d3c5eb1a
commit
332681aaad
|
@ -382,21 +382,23 @@ function progressbar:set_max_value(max_value)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Set the progressbar height.
|
--- Set the progressbar height.
|
||||||
-- This method is deprecated, it no longer do anything.
|
-- This method is deprecated. Use a `wibox.container.constraint` widget or
|
||||||
-- Use a `wibox.container.constraint` widget or `forced_height`.
|
-- `forced_height`.
|
||||||
-- @param height The height to set.
|
-- @param height The height to set.
|
||||||
-- @deprecated set_height
|
-- @deprecated set_height
|
||||||
function progressbar:set_height(height) --luacheck: no unused_args
|
function progressbar:set_height(height)
|
||||||
util.deprecate("Use a `wibox.container.constraint` widget or forced_height")
|
util.deprecate("Use a `wibox.container.constraint` widget or `forced_height`")
|
||||||
|
self:set_forced_height(height)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Set the progressbar width.
|
--- Set the progressbar width.
|
||||||
-- This method is deprecated, it no longer do anything.
|
-- This method is deprecated. Use a `wibox.container.constraint` widget or
|
||||||
-- Use a `wibox.container.constraint` widget or `forced_width`.
|
-- `forced_width`.
|
||||||
-- @param width The width to set.
|
-- @param width The width to set.
|
||||||
-- @deprecated set_width
|
-- @deprecated set_width
|
||||||
function progressbar:set_width(width) --luacheck: no unused_args
|
function progressbar:set_width(width)
|
||||||
util.deprecate("Use a `wibox.container.constraint` widget or forced_width")
|
util.deprecate("Use a `wibox.container.constraint` widget or `forced_width`")
|
||||||
|
self:set_forced_width(width)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Build properties function
|
-- Build properties function
|
||||||
|
|
Loading…
Reference in New Issue