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 <psychon@znc.in>
This commit is contained in:
Stjujsckij Nickolaj 2010-10-12 11:38:37 +04:00 committed by Uli Schlachter
parent 3961a2ee31
commit 7ef7fe7e03
1 changed files with 1 additions and 2 deletions

View File

@ -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