Moorning,

Here's another taglist tweak, also Julien's favourite - deletion! :]

Some time ago I noticed that the margin to the left of the tag name
disappeared.
Looks like this:   http://omploader.org/vMWlvaw  <- eyesore

If you look at the screenshot, you will notice that I don't use taglist_squares,
which turned out to be the "reason" - if I uncommented those in the theme, the
padding was correct.

I think we need the additional space in front of the text whether
there are squares
or not, so the if's are just in the way.

Also the condition for t.name will always be met (tag has to have a name,
doesn't it?), so I removed that.

kk
From 28f06b746fecbb578b606cfd9756d846b12b96e1 Mon Sep 17 00:00:00 2001
From: koniu <gkusni...@gmail.com>
Date: Mon, 13 Apr 2009 11:36:09 +0100
Subject: [PATCH] awful.widget.taglist: remove needless taglist_squares conditions

Signed-off-by: koniu <gkusni...@gmail.com>
---
 lib/awful/widget/taglist.lua.in |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in
index 3d58477..c831858 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 .. "<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
-- 
1.6.2.1

Reply via email to