Mercurial > aewl
comparison draw.c @ 261:d6fd632d861c
implement multi-tag selection through button3 click on the specific tag
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Fri, 11 Aug 2006 18:37:41 +0200 |
parents | 32dc3acfffc0 |
children | d659a2dce2b5 |
comparison
equal
deleted
inserted
replaced
260:243bf6783c7c | 261:d6fd632d861c |
---|---|
107 dc.w = 0; | 107 dc.w = 0; |
108 for(i = 0; i < ntags; i++) { | 108 for(i = 0; i < ntags; i++) { |
109 dc.x += dc.w; | 109 dc.x += dc.w; |
110 dc.w = textw(tags[i]); | 110 dc.w = textw(tags[i]); |
111 if(istile) | 111 if(istile) |
112 drawtext(tags[i], (i == tsel)); | 112 drawtext(tags[i], tsel[i]); |
113 else | 113 else |
114 drawtext(tags[i], (i != tsel)); | 114 drawtext(tags[i], !tsel[i]); |
115 } | 115 } |
116 x = dc.x + dc.w; | 116 x = dc.x + dc.w; |
117 dc.w = textw(stext); | 117 dc.w = textw(stext); |
118 dc.x = bx + bw - dc.w; | 118 dc.x = bx + bw - dc.w; |
119 drawtext(stext, !istile); | 119 drawtext(stext, !istile); |