awful.widget: Don't use a resizable imagebox

awful.widget.graph and progressbar both create an imagebox. The default is
resize = true which means the image is scaled up inside the wibox if
:set_height() is used.

Setting widget.resize = false avoids this.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2009-08-26 20:28:43 +02:00 committed by Julien Danjou
parent ac60bbd147
commit ab6cd898c1
2 changed files with 2 additions and 0 deletions

View File

@ -216,6 +216,7 @@ function new(args)
local graph = {}
graph.widget = capi.widget(args)
graph.widget.resize = false
data[graph] = { width = width, height = height, values = {}, max_value = 1 }

View File

@ -169,6 +169,7 @@ function new(args)
local pbar = {}
pbar.widget = capi.widget(args)
pbar.widget.resize = false
data[pbar] = { width = width, height = height, value = 0 }