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

Diff of /trunk/Src/wptGPGPrefsDlg.cpp

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

revision 76 by twoaday, Thu Nov 3 17:55:18 2005 UTC revision 77 by twoaday, Mon Nov 14 15:01:01 2005 UTC
# Line 150  gpgprefs_dlg_proc (HWND dlg, UINT msg, W Line 150  gpgprefs_dlg_proc (HWND dlg, UINT msg, W
150                  }                  }
151              }              }
152              else {              else {
153                  char * t = get_gnupg_cfgfile ();                  char *cfg = get_gnupg_cfgfile ();
154                  if (t && !file_exist_check (t))                  if (cfg && !file_exist_check (cfg))
155                      set_reg_entry_gpg( "OptFile", t );                      set_reg_entry_gpg( "OptFile", cfg);
156                  free_if_alloc (t);                  free_if_alloc (cfg);
157              }              }
158              if ( set_reg_entry_gpg( "HomeDir", homedir ) ) {                                  if ( set_reg_entry_gpg( "HomeDir", homedir ) ) {                    
159                  msg_box( dlg, _("Could not save 'HomeDir' in the registry."), _("Preferences"), MB_ERR );                  msg_box( dlg, _("Could not save 'HomeDir' in the registry."), _("Preferences"), MB_ERR );
# Line 234  gpgprefs_dlg_proc (HWND dlg, UINT msg, W Line 234  gpgprefs_dlg_proc (HWND dlg, UINT msg, W
234              break;              break;
235    
236          case IDC_GPGREFS_EXEDLG:          case IDC_GPGREFS_EXEDLG:
237              const char * bin;              const char *bin;
238              bin = get_filename_dlg( dlg, FILE_OPEN, _("Choose GPG binary"), _("Executable Files (*.exe)\0*.exe\0\0"), NULL );              bin = get_fileopen_dlg (dlg, _("Choose GPG binary"),
239              if( bin )                                      _("Executable Files (*.exe)\0*.exe\0\0"),
240                  SetDlgItemText( dlg, IDC_GPGPREFS_EXEDIR, bin );                                      NULL);
241                if (bin)
242                    SetDlgItemText (dlg, IDC_GPGPREFS_EXEDIR, bin);
243              return TRUE;              return TRUE;
244                            
245          case IDC_GPGPREFS_OPTDLG:          case IDC_GPGPREFS_OPTDLG:
246              const char * opt;              const char *optf;
247              opt = get_filename_dlg( dlg, FILE_OPEN, _("Choose GPG config file"), NULL, NULL );              optf = get_fileopen_dlg (dlg, _("Choose GPG config file"),
248              if( opt )                                       NULL, NULL);
249                  SetDlgItemText (dlg, IDC_GPGPREFS_OPTFILE, opt);              if (optf)
250                    SetDlgItemText (dlg, IDC_GPGPREFS_OPTFILE, optf);
251              return TRUE;              return TRUE;
252          }          }
253          break;          break;

Legend:
Removed from v.76  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26