update simple widgets to new widget layouts

Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Lukas Hrazky 2009-10-24 15:02:50 +02:00 committed by Julien Danjou
parent f885b8e954
commit a7c5668a92
3 changed files with 3 additions and 0 deletions

View File

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

View File

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

View File

@ -34,6 +34,7 @@ function new(args)
args.type = "textbox"
promptbox.widget = capi.widget(args)
promptbox.widget.ellipsize = "start"
promptbox[1] = promptbox.widget
promptbox.run = run
promptbox.prompt = args.prompt or "Run: "
promptbox.layout = args.layout or layout.horizontal.leftright