From 3005196d6440d9fe68007959610a76cbbc609834 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 23 Oct 2008 11:22:58 +0200 Subject: [PATCH] awful.titlebar: use pairs instead of ipairs Signed-off-by: Julien Danjou --- lib/awful/titlebar.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in index dcbd20d70..860e0b68e 100644 --- a/lib/awful/titlebar.lua.in +++ b/lib/awful/titlebar.lua.in @@ -6,7 +6,7 @@ -- Grab environment we need local math = math -local ipairs = ipairs +local pairs = pairs local otable = otable local capi = { @@ -98,7 +98,7 @@ function update(c, prop) if c.titlebar and data[c] then local widgets = c.titlebar.widgets local title, close, closef - for k, v in ipairs(widgets) do + for k, v in pairs(widgets) do if v.name == "title" then title = v elseif v.name == "close" then close = v elseif v.name == "closef" then closef = v