add(w.w.template) constructor accepts widget props
This commit is contained in:
parent
d5382b0881
commit
2542c3b04a
|
@ -216,9 +216,8 @@ function template.new(args)
|
||||||
ret:set_update_callback(args.update_callback)
|
ret:set_update_callback(args.update_callback)
|
||||||
ret:set_update_now(args.update_now)
|
ret:set_update_now(args.update_now)
|
||||||
|
|
||||||
if args.buttons then
|
-- Apply the received buttons, visible, forced_width and so on
|
||||||
ret:set_buttons(args.buttons)
|
gtable.crush(ret, args)
|
||||||
end
|
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue