From 3e8506e6cb6606a0ae15fc0f01f8f7cee517dbb6 Mon Sep 17 00:00:00 2001 From: koniu Date: Mon, 13 Apr 2009 11:36:09 +0100 Subject: [PATCH] awful.widget.taglist: remove needless taglist_squares conditions Signed-off-by: koniu Signed-off-by: Julien Danjou --- lib/awful/widget/taglist.lua.in | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in index 3d58477c..c831858c 100644 --- a/lib/awful/widget/taglist.lua.in +++ b/lib/awful/widget/taglist.lua.in @@ -134,25 +134,13 @@ function label.all(t, args) end end end - local taglist_squares = false - if taglist_squares_sel or taglist_squares_unsel then - taglist_squares = true - end - if t.name and not tag.getproperty(t, "icon_only") then + if not tag.getproperty(t, "icon_only") then if fg_color then text = text .. "" - if taglist_squares then - text = text .. " " - end - text = text..util.escape(t.name).." " + text = " " .. text..util.escape(t.name).." " else - if taglist_squares then - text = text .. " " - end - text = text .. util.escape(t.name) .. " " + text = text .. " " .. util.escape(t.name) .. " " end - elseif taglist_squares then - text = text .. " " end text = text .. "" if tag.geticon(t) and type(tag.geticon(t)) == "image" then