diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/accounts.c | 2 | ||||
-rw-r--r-- | src/ui/members.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/accounts.c b/src/ui/accounts.c index 377bdc9..ced1d68 100644 --- a/src/ui/accounts.c +++ b/src/ui/accounts.c | |||
@@ -69,7 +69,7 @@ accounts_event(UI_ACCOUNTS_Handle *accounts, | |||
69 | case 27: | 69 | case 27: |
70 | case KEY_EXIT: | 70 | case KEY_EXIT: |
71 | { | 71 | { |
72 | app->chat.quit = GNUNET_YES; | 72 | app->chat.quit = TRUE; |
73 | break; | 73 | break; |
74 | } | 74 | } |
75 | case KEY_UP: | 75 | case KEY_UP: |
diff --git a/src/ui/members.c b/src/ui/members.c index c500d58..710c0d6 100644 --- a/src/ui/members.c +++ b/src/ui/members.c | |||
@@ -124,7 +124,14 @@ _members_iterate_print(UI_MEMBERS_Handle *members, | |||
124 | wmove(members->window, y, 0); | 124 | wmove(members->window, y, 0); |
125 | 125 | ||
126 | const char *name = GNUNET_CHAT_contact_get_name(contact); | 126 | const char *name = GNUNET_CHAT_contact_get_name(contact); |
127 | wprintw(members->window, "%s", name); | 127 | const char *key = GNUNET_CHAT_contact_get_key(contact); |
128 | |||
129 | size_t key_len = key? strlen(key) : 0; | ||
130 | |||
131 | if (key_len > 4) | ||
132 | wprintw(members->window, "[%s]: %s", key + (key_len - 4), name); | ||
133 | else | ||
134 | wprintw(members->window, "%s", name); | ||
128 | 135 | ||
129 | if (selected) wattroff(members->window, attrs_select); | 136 | if (selected) wattroff(members->window, attrs_select); |
130 | } | 137 | } |