diff options
-rw-r--r-- | contactWind.c | 5 | ||||
-rw-r--r-- | contactWind.h | 1 | ||||
-rw-r--r-- | contactWind.o | bin | 0 -> 7240 bytes |
3 files changed, 6 insertions, 0 deletions
diff --git a/contactWind.c b/contactWind.c index 8a3f46c..fee0ffd 100644 --- a/contactWind.c +++ b/contactWind.c @@ -25,6 +25,11 @@ void selectNextContact(void) { if( contactListSelection < nbContacts - 1) contactListSelection++; } +void setContactSelection(contact* c) { + int i = c - contactList; + if( i >= 0 && i < nbContacts ) + contactListSelection = i; +} void selectPreviousContact(void) { if( contactListSelection > 0) contactListSelection--; diff --git a/contactWind.h b/contactWind.h index 41548b7..b7e1c53 100644 --- a/contactWind.h +++ b/contactWind.h @@ -13,6 +13,7 @@ void selectPreviousContact(void); struct contact* getContactSelected(void); +void setContactSelection(struct contact*); diff --git a/contactWind.o b/contactWind.o Binary files differnew file mode 100644 index 0000000..19c7256 --- /dev/null +++ b/contactWind.o |