From 21223cabd9431686ecb7a0be57a792889f3dea60 Mon Sep 17 00:00:00 2001 From: Lukas Hrazky Date: Sun, 25 Oct 2009 21:15:54 +0100 Subject: [PATCH] progressbar: remove minimum size limit Signed-off-by: Lukas Hrazky Signed-off-by: Julien Danjou --- lib/awful/widget/progressbar.lua.in | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/awful/widget/progressbar.lua.in b/lib/awful/widget/progressbar.lua.in index 101bbd8e..d32ca6d9 100644 --- a/lib/awful/widget/progressbar.lua.in +++ b/lib/awful/widget/progressbar.lua.in @@ -57,8 +57,6 @@ local function update(pbar) local width = data[pbar].width or 100 local height = data[pbar].height or 20 - if data[pbar].width < 5 or data[pbar].height < 2 then return end - -- Create new empty image local img = capi.image.argb32(width, height, nil) @@ -124,10 +122,8 @@ end -- @param progressbar The progressbar. -- @param height The height to set. function set_height(progressbar, height) - if height >= 5 then - data[progressbar].height = height - update(progressbar) - end + data[progressbar].height = height + update(progressbar) return progressbar end @@ -135,10 +131,8 @@ end -- @param progressbar The progressbar. -- @param width The width to set. function set_width(progressbar, width) - if width >= 5 then - data[progressbar].width = width - update(progressbar) - end + data[progressbar].width = width + update(progressbar) return progressbar end @@ -162,8 +156,6 @@ function new(args) local width = args.width or 100 local height = args.height or 20 - if width < 5 or height < 5 then return end - args.type = "imagebox" local pbar = {}