From ee6a3dd6bc4a195e89c03e50318e6e167164025b Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 26 Jan 2018 20:16:19 +0100 Subject: Add an option to shown Number instead of name --- contactWind.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'contactWind.c') diff --git a/contactWind.c b/contactWind.c index e496e8a..c0baa26 100644 --- a/contactWind.c +++ b/contactWind.c @@ -13,6 +13,8 @@ int w_menuContact,h_menuContact; int contactListSelection; int firstConctactShow; +int showName = 1; + contact* getContactSelected(void) { return contactListSelection+contactList; @@ -80,7 +82,10 @@ void showContactListW(void) { attrset( COLOR_PAIR(color) | attr); move(y,x); printw("%*s", w, " "); - mvprintc(x,y++,contactList[i].display_name, 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 -- cgit v1.2.3