diff options
author | ache <ache@ache.one> | 2019-01-13 13:28:19 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-01-13 13:28:19 +0100 |
commit | c6547a8f626c40b2359cfa5ff6288f7d2e515f87 (patch) | |
tree | 2e9df5a61473d596f3f941b84ba0fc3f1bdbef2a | |
parent | Fix use of mkstemp (diff) |
Fix clean of contactList
-rw-r--r-- | contactList.o | bin | 6320 -> 0 bytes | |||
-rw-r--r-- | contactWind.c | 12 |
2 files changed, 7 insertions, 5 deletions
diff --git a/contactList.o b/contactList.o Binary files differdeleted file mode 100644 index 5fb4e69..0000000 --- a/contactList.o +++ /dev/null diff --git a/contactWind.c b/contactWind.c index c0baa26..7d47a62 100644 --- a/contactWind.c +++ b/contactWind.c @@ -54,7 +54,7 @@ void showContactListW(void) { firstConctactShow-=h/2; if( firstConctactShow < 0 ) firstConctactShow = 0; - + clearContactListW(); } @@ -71,8 +71,7 @@ void showContactListW(void) { int i; for(i = firstConctactShow ; i < (h+firstConctactShow) && i < s ; i++) { int color = 0, attr = A_NORMAL; -// if( it[i].opt == 1 ) -// color = COLOR_BLUE+1; + if( contactList[i].conversation ) attr |= A_BOLD; if( i == contactListSelection ) { @@ -82,14 +81,17 @@ void showContactListW(void) { attrset( COLOR_PAIR(color) | attr); move(y,x); printw("%*s", w, " "); + if( showName ) mvprintc(x,y++,contactList[i].display_name, w); else mvprintc(x,y++,contactList[i].number, w); + attrset(0 | A_NORMAL); } - for( ; i < s ; i++){ // Clear - + for( ; i < (h+firstConctactShow) ; i++){ // Clear + move(y++,x); + printw("%*s", w, " "); } } |