/[winpt]/trunk/Src/wptKeyManagerDlg.cpp
ViewVC logotype

Diff of /trunk/Src/wptKeyManagerDlg.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 255 by twoaday, Tue Aug 1 16:37:23 2006 UTC revision 256 by twoaday, Sat Aug 5 10:31:06 2006 UTC
# Line 522  update_status_bar (HWND sb, listview_ctr Line 522  update_status_bar (HWND sb, listview_ctr
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);
# Line 1153  reload_keylist (struct km_info_s *kmi) Line 1150  reload_keylist (struct km_info_s *kmi)
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 ();

Legend:
Removed from v.255  
changed lines
  Added in v.256

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26