522 |
char txt_sec[128]; |
char txt_sec[128]; |
523 |
char txt_pub[128]; |
char txt_pub[128]; |
524 |
int nkeys = 0, nsec = 0; |
int nkeys = 0, nsec = 0; |
|
int i; |
|
525 |
|
|
526 |
nkeys = listview_count_items (lv, 0); |
nkeys = listview_count_items (lv, 0); |
527 |
for (i = 0; i < nkeys; i++) { |
nsec = gpg_keycache_get_size (keycache_get_ctx (0)); |
528 |
if (km_check_for_seckey (lv, i, NULL)) |
|
|
nsec++; |
|
|
} |
|
529 |
_snprintf (txt_sec, sizeof (txt_sec)-1, _("%d secret keys"), nsec); |
_snprintf (txt_sec, sizeof (txt_sec)-1, _("%d secret keys"), nsec); |
530 |
_snprintf (txt_pub, sizeof (txt_pub)-1, _("%d keys"), nkeys); |
_snprintf (txt_pub, sizeof (txt_pub)-1, _("%d keys"), nkeys); |
531 |
SendMessage (sb, SB_SETTEXT, 1, (LPARAM)txt_sec); |
SendMessage (sb, SB_SETTEXT, 1, (LPARAM)txt_sec); |
1150 |
{ |
{ |
1151 |
gpg_keycache_t c; |
gpg_keycache_t c; |
1152 |
|
|
|
c = keycache_get_ctx (1); |
|
1153 |
keycache_reload (kmi->dlg); |
keycache_reload (kmi->dlg); |
1154 |
|
c = keycache_get_ctx (1); |
1155 |
keylist_reload (kmi->lv, c, KEYLIST_LIST, kmi->keylist_sortby); |
keylist_reload (kmi->lv, c, KEYLIST_LIST, kmi->keylist_sortby); |
1156 |
update_status_bar (kmi->statbar, kmi->lv); |
update_status_bar (kmi->statbar, kmi->lv); |
1157 |
keyring_check_last_access (); |
keyring_check_last_access (); |