X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fsidebar.c;h=abf76d762d4888b9dcde9ba87a0a206e5618fef2;hb=8ab1ab66eb1c4b95f9b2a5ed9c2b2cf1dfa74544;hp=6f35e48cc4672463a27b0610acea7f020fd11bdd;hpb=fbb57685ed2c5633f7c76acb7cf2c9bd9d4897b3;p=apps%2Fmadmutt.git diff --git a/lib-ui/sidebar.c b/lib-ui/sidebar.c index 6f35e48..abf76d7 100644 --- a/lib-ui/sidebar.c +++ b/lib-ui/sidebar.c @@ -278,7 +278,7 @@ int sidebar_draw(void) memset(&blank, ' ', sizeof(blank)); wmove(sw, 0, 0); - WSETCOLOR(sw, MT_COLOR_STATUS); + SETCOLOR(sw, MT_COLOR_STATUS); waddnstr(sw, blank, x); line = 1; @@ -286,32 +286,32 @@ int sidebar_draw(void) BUFFY *tmp = Incoming.arr[i]; if (i == CurBuffy) - WSETCOLOR(sw, MT_COLOR_INDICATOR); + SETCOLOR(sw, MT_COLOR_INDICATOR); else if (tmp->new > 0) - WSETCOLOR(sw, MT_COLOR_NEW); + SETCOLOR(sw, MT_COLOR_NEW); else if (tmp->msg_flagged > 0) - WSETCOLOR(sw, MT_COLOR_FLAGGED); + SETCOLOR(sw, MT_COLOR_FLAGGED); else - WSETCOLOR(sw, MT_COLOR_NORMAL); + SETCOLOR(sw, MT_COLOR_NORMAL); if (make_sidebar_entry(sw, tmp->path, i, x - 1)) { - WSETCOLOR(sw, MT_COLOR_SIDEBAR); + SETCOLOR(sw, MT_COLOR_SIDEBAR); waddch(sw, ACS_VLINE); line++; } } while (line < y - 1) { - WSETCOLOR(sw, MT_COLOR_NORMAL); + SETCOLOR(sw, MT_COLOR_NORMAL); waddnstr(sw, blank, x - 1); - WSETCOLOR(sw, MT_COLOR_SIDEBAR); + SETCOLOR(sw, MT_COLOR_SIDEBAR); waddch(sw, ACS_VLINE); line++; } - WSETCOLOR(sw, MT_COLOR_STATUS); + SETCOLOR(sw, MT_COLOR_STATUS); waddnstr(sw, blank, x); - WSETCOLOR(sw, MT_COLOR_NORMAL); + SETCOLOR(sw, MT_COLOR_NORMAL); return 0; }