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

Diff of /trunk/Src/wptKeylist.cpp

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

revision 203 by twoaday, Sat Apr 22 18:30:24 2006 UTC revision 204 by twoaday, Wed Apr 26 06:37:23 2006 UTC
# Line 733  do_addkey (listview_ctrl_t lv, gpgme_key Line 733  do_addkey (listview_ctrl_t lv, gpgme_key
733          attr = _("Invalid User ID");          attr = _("Invalid User ID");
734          listview_add_sub_item (lv, 0, idx++, attr);          listview_add_sub_item (lv, 0, idx++, attr);
735      }        }  
736      else {      else        
737          char *uid = utf8_to_native (attr);          listview_add_sub_item (lv, 0, idx++, attr);
         if (uid) {  
             listview_add_sub_item (lv, 0, idx++, uid);  
             free (uid);  
         }  
     }  
738      k = get_nth_key (key, keyidx);      k = get_nth_key (key, keyidx);
739      if (k && k->keyid) {      if (k && k->keyid) {
740          _snprintf (fmt, sizeof fmt -1, "0x%s", k->keyid + 8);          _snprintf (fmt, sizeof fmt -1, "0x%s", k->keyid + 8);
# Line 838  void Line 833  void
833  keylist_upd_key (listview_ctrl_t lv, int pos, gpgme_key_t key)  keylist_upd_key (listview_ctrl_t lv, int pos, gpgme_key_t key)
834  {  {
835      const char *s;      const char *s;
836      char *uid, *p;      char *p;
837      char tmp[32];      char tmp[32];
838    
839      listview_set_item2 (lv, pos, (void *)key);      listview_set_item2 (lv, pos, (void *)key);
840      /* the only mode we support is KYLIST_LIST in the Key Manager */      /* the only mode we support is KYLIST_LIST in the Key Manager */
841            
842      s = key->uids->uid;      s = key->uids->uid;
843      if (s) {      if (s)
844          uid = utf8_to_native (s);          listview_add_sub_item (lv, pos, KM_COL_UID, s);
         listview_add_sub_item (lv, pos, KM_COL_UID, uid);  
         free (uid);  
     }  
845    
846      s = key->subkeys->keyid;      s = key->subkeys->keyid;
847      if (s) {      if (s) {

Legend:
Removed from v.203  
changed lines
  Added in v.204

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26