From d425538578bc3197b951e4c3486d1e8203d757b6 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 2 Nov 1999 21:17:07 +0000 Subject: [PATCH] Changed the browser to use bold fonts for branches. Hardcoded for now. --- WINGs/wbrowser.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WINGs/wbrowser.c b/WINGs/wbrowser.c index e5e81ae8..9c56684b 100644 --- a/WINGs/wbrowser.c +++ b/WINGs/wbrowser.c @@ -532,17 +532,17 @@ paintItem(WMList *lPtr, int index, Drawable d, char *text, int state, XClearArea(scr->display, d, x, y, width, height, False); if (text) { - /* Avoid overlaping... */ + /* Avoid overlaping... */ + WMFont *font = (state & WLDSIsBranch) ? scr->boldFont : scr->normalFont; int textLen = strlen(text); int widthC = (state & WLDSIsBranch) ? width-20 : width-8; - if (WMWidthOfString(scr->normalFont, text, textLen) > widthC) { - char *textBuf = createTruncatedString(scr->normalFont, - text, &textLen, widthC); - W_PaintText(view, d, scr->normalFont, x+4, y, widthC, + if (WMWidthOfString(font, text, textLen) > widthC) { + char *textBuf = createTruncatedString(font, text, &textLen, widthC); + W_PaintText(view, d, font, x+4, y, widthC, WALeft, WMColorGC(scr->black), False, textBuf, textLen); wfree(textBuf); } else { - W_PaintText(view, d, scr->normalFont, x+4, y, widthC, + W_PaintText(view, d, font, x+4, y, widthC, WALeft, WMColorGC(scr->black), False, text, textLen); } } -- 2.11.4.GIT