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); |
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) { |