From 7ef7fe7e0349999c831751e54c46f2c450fbb7d7 Mon Sep 17 00:00:00 2001 From: Stjujsckij Nickolaj Date: Tue, 12 Oct 2010 11:38:37 +0400 Subject: [PATCH] awful.titlebar: Stop using arg Implementing vararg functions via arg is deprecated in lua. This kind of thing should instead be done via "...". Signed-off-by: Uli Schlachter --- lib/awful/titlebar.lua.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in index 38d4c563..3dcd4c92 100644 --- a/lib/awful/titlebar.lua.in +++ b/lib/awful/titlebar.lua.in @@ -253,8 +253,7 @@ local function button_group(name, attrs, sfn, ...) s.attributes = attrs s.states = {} - for i = 1, #arg do - local state = arg[i] + for i, state in pairs({...}) do s.states[state.idx] = state end