57 |
for (u=key->uids; u; u = u->next) { |
for (u=key->uids; u; u = u->next) { |
58 |
if (u->revoked) |
if (u->revoked) |
59 |
continue; |
continue; |
60 |
tvi.pszText = u->uid; |
p = utf8_to_native (u->uid); |
61 |
|
tvi.pszText = p; |
62 |
tvi.state = TVIS_BOLD; |
tvi.state = TVIS_BOLD; |
63 |
tvi.mask = TVIF_TEXT; |
tvi.mask = TVIF_TEXT; |
64 |
tvi.iImage = 0; |
tvi.iImage = 0; |
66 |
ctx.hParent = TVI_ROOT; |
ctx.hParent = TVI_ROOT; |
67 |
ctx.item = tvi; |
ctx.item = tvi; |
68 |
uid = TreeView_InsertItem (dlg, &ctx); |
uid = TreeView_InsertItem (dlg, &ctx); |
69 |
|
safe_free (p); |
70 |
for (s = u->signatures; s; s=s->next) { |
for (s = u->signatures; s; s=s->next) { |
71 |
if (get_pubkey (s->keyid+8, &signer)) |
if (get_pubkey (s->keyid+8, &signer)) |
72 |
continue; |
continue; |
156 |
static HIMAGELIST hil; |
static HIMAGELIST hil; |
157 |
HICON ico[2]; |
HICON ico[2]; |
158 |
NMHDR *nft; |
NMHDR *nft; |
159 |
char inf[256]; |
char inf[256], *p; |
160 |
|
|
161 |
switch (msg) { |
switch (msg) { |
162 |
case WM_INITDIALOG: |
case WM_INITDIALOG: |
168 |
tree = GetDlgItem (dlg, IDC_VKEYSIG_TREE); |
tree = GetDlgItem (dlg, IDC_VKEYSIG_TREE); |
169 |
hil = treeview_set_image_list (tree, ico, 2); |
hil = treeview_set_image_list (tree, ico, 2); |
170 |
sigtree_load (tree, key->ctx); |
sigtree_load (tree, key->ctx); |
171 |
_snprintf (inf, sizeof (inf)-1, _("Signature Tree for \"%s\""), |
p = utf8_to_native (key->ctx->uids->uid); |
172 |
key->ctx->uids->uid); |
_snprintf (inf, sizeof (inf)-1, _("Signature Tree for \"%s\""), p); |
173 |
|
safe_free (p); |
174 |
SetDlgItemText (dlg, IDC_VKEYSIG_EDIT, _("Edit...")); |
SetDlgItemText (dlg, IDC_VKEYSIG_EDIT, _("Edit...")); |
175 |
SetWindowText (dlg, inf); |
SetWindowText (dlg, inf); |
176 |
SetForegroundWindow (dlg); |
SetForegroundWindow (dlg); |