awful.widget.taglist: remove needless taglist_squares conditions

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
koniu 2009-04-13 11:36:09 +01:00 committed by Julien Danjou
parent 045d4c823b
commit 3e8506e6cb
1 changed files with 3 additions and 15 deletions

View File

@ -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 .. "<span color='"..util.color_strip_alpha(fg_color).."'>"
if taglist_squares then
text = text .. " "
end
text = text..util.escape(t.name).." </span>"
text = " " .. text..util.escape(t.name).." </span>"
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 .. "</span>"
if tag.geticon(t) and type(tag.geticon(t)) == "image" then