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

Diff of /trunk/Src/wptKeysigDlg.cpp

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

revision 201 by twoaday, Sat Apr 22 18:30:24 2006 UTC revision 204 by twoaday, Wed Apr 26 06:37:23 2006 UTC
# Line 128  sigprops_dlg_proc (HWND dlg, UINT msg, W Line 128  sigprops_dlg_proc (HWND dlg, UINT msg, W
128          int _class;          int _class;
129      } ctx;      } ctx;
130      const char *fmt_templ = _("%s %s signature");      const char *fmt_templ = _("%s %s signature");
131        const char *s;
132    
133      switch (msg) {      switch (msg) {
134      case WM_SYSCOMMAND:      case WM_SYSCOMMAND:
# Line 168  sigprops_dlg_proc (HWND dlg, UINT msg, W Line 169  sigprops_dlg_proc (HWND dlg, UINT msg, W
169          SetDlgItemInt (dlg, IDC_SIGPROPS_CLASS, ctx._class, FALSE);          SetDlgItemInt (dlg, IDC_SIGPROPS_CLASS, ctx._class, FALSE);
170          if (ctx.exportable)          if (ctx.exportable)
171              CheckDlgButton (dlg, IDC_SIGPROPS_EXP, BST_CHECKED);              CheckDlgButton (dlg, IDC_SIGPROPS_EXP, BST_CHECKED);
172          if (!get_pubkey (ks->keyid+8, &issuer)) {          if (!get_pubkey (ks->keyid+8, &issuer))
173              char *uid = utf8_to_native (issuer->uids->uid);              s = issuer->uids->uid;
             SetDlgItemText (dlg, IDC_SIGPROPS_ISSUER, uid);  
             safe_free (uid);  
         }  
174          else          else
175              SetDlgItemText (dlg, IDC_SIGPROPS_ISSUER, _("  user ID not found"));              s = _("  user ID not found");
176            SetDlgItemText_utf8 (dlg, IDC_SIGPROPS_ISSUER, s);
177          if (ks->expires == 0) {          if (ks->expires == 0) {
178              ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPSTR), SW_HIDE);              ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPSTR), SW_HIDE);
179              ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPDATE), SW_HIDE);              ShowWindow (GetDlgItem (dlg, IDC_SIGPROPS_EXPDATE), SW_HIDE);
# Line 382  keysig_dlg_proc (HWND dlg, UINT msg, WPA Line 381  keysig_dlg_proc (HWND dlg, UINT msg, WPA
381      static struct winpt_key_s *k;      static struct winpt_key_s *k;
382      gpgme_key_sig_t ks;      gpgme_key_sig_t ks;
383      HWND sl;      HWND sl;
384      char inf[384], *utf8_uid;      char inf[384];
385      int idx = 0;          int idx = 0;    
386            
387      switch (msg) {      switch (msg) {
# Line 390  keysig_dlg_proc (HWND dlg, UINT msg, WPA Line 389  keysig_dlg_proc (HWND dlg, UINT msg, WPA
389          k = (winpt_key_t) lparam;          k = (winpt_key_t) lparam;
390          if (!k)          if (!k)
391              BUG (0);              BUG (0);
392          if (k->uid) {          if (k->uid)
393              utf8_uid = utf8_to_native (k->uid);              _snprintf (inf, DIM (inf)-1, _("Signature List for \"%s\""), k->uid);
394              _snprintf (inf, DIM (inf)-1, _("Signature List for \"%s\""), utf8_uid);          SetWindowText_utf8 (dlg, inf);
             safe_free (utf8_uid);  
         }  
         SetWindowText (dlg, inf);  
395          SetDlgItemText (dlg, IDC_KEYSIG_RECVKEY, _("&Receive Key"));          SetDlgItemText (dlg, IDC_KEYSIG_RECVKEY, _("&Receive Key"));
396          SetDlgItemText (dlg, IDC_KEYSIG_SIGPROPS, _("&Properties"));          SetDlgItemText (dlg, IDC_KEYSIG_SIGPROPS, _("&Properties"));
397    

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26