From 33d5de52c6454431a92532efcaaff42316c567e7 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Thu, 11 Nov 2021 17:44:52 +0100 Subject: [PATCH] add(w.w.template) constructor `buttons` param --- lib/wibox/widget/template.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wibox/widget/template.lua b/lib/wibox/widget/template.lua index c6545405d..02cc5eea3 100644 --- a/lib/wibox/widget/template.lua +++ b/lib/wibox/widget/template.lua @@ -117,6 +117,10 @@ function template.new(args) ret:set_update_callback(args.update_callback) ret:set_update_now(args.update_now) + if args.buttons then + ret:set_buttons(args.buttons) + end + return ret end