Re: [PATCH] awful.widget.taglist: dont show name if icon_only property is set

2009-04-13 Thread Julien Danjou
At 1239592675 time_t, koniu wrote:
 Here's a trivial patch which allows users to have a tag displayed with
 an icon only if they set 'icon_only' property for it.
 Choice of the name might not be the best one, but taglist_icon_only
 seems terribly long for what it is.

Pushed.

Cheers,
-- 
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Tomorrow I was nothing, yesterday I'll be.


signature.asc
Description: Digital signature


[PATCH] awful.widget.taglist: dont show name if icon_only property is set

2009-04-12 Thread koniu
Hi,

Here's a trivial patch which allows users to have a tag displayed with
an icon only if they set 'icon_only' property for it.
Choice of the name might not be the best one, but taglist_icon_only
seems terribly long for what it is.

awful.tag.setproperty(t, icon_only)
koniu
From e3ecdd4284db1545f8b5ef8ae5fafc6d1871f255 Mon Sep 17 00:00:00 2001
From: koniu gkusni...@gmail.com
Date: Mon, 13 Apr 2009 03:54:46 +0100
Subject: [PATCH] awful.widget.taglist: dont show name if icon_only property is set

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

diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in
index 552316e..3d58477 100644
--- a/lib/awful/widget/taglist.lua.in
+++ b/lib/awful/widget/taglist.lua.in
@@ -138,7 +138,7 @@ function label.all(t, args)
 if taglist_squares_sel or taglist_squares_unsel then
 taglist_squares = true
 end
-if t.name then
+if t.name and 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
-- 
1.6.2.1