From: Jaakko H. <jhe...@us...> - 2006-09-05 08:21:37
|
Update of /cvsroot/abook/abook In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv6819 Modified Files: list.c Log Message: - move highlight_line Index: list.c =================================================================== RCS file: /cvsroot/abook/abook/list.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- list.c 5 Sep 2006 08:17:17 -0000 1.32 +++ list.c 5 Sep 2006 08:21:35 -0000 1.33 @@ -192,6 +192,33 @@ } static void +highlight_line(WINDOW *win, int line) +{ + wstandout(win); + + /* + * this is a tricky one + */ +#if 0 +/*#ifdef mvwchgat*/ + mvwchgat(win, line, 0, -1, A_STANDOUT, 0, NULL); +#else + /* + * buggy function: FIXME + */ + scrollok(win, FALSE); + { + int i; + wmove(win, line, 0); + for(i = 0; i < COLS; i++) + waddch(win, ' '); + /*wattrset(win, 0);*/ + } + scrollok(win, TRUE); +#endif +} + +static void print_list_line(int item, int line, int highlight) { struct index_elem *cur; @@ -422,33 +449,6 @@ refresh_list(); } -static void -highlight_line(WINDOW *win, int line) -{ - wstandout(win); - - /* - * this is a tricky one - */ -#if 0 -/*#ifdef mvwchgat*/ - mvwchgat(win, line, 0, -1, A_STANDOUT, 0, NULL); -#else - /* - * buggy function: FIXME - */ - scrollok(win, FALSE); - { - int i; - wmove(win, line, 0); - for(i = 0; i < COLS; i++) - waddch(win, ' '); - /*wattrset(win, 0);*/ - } - scrollok(win, TRUE); -#endif -} - int selected_items() { |