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

Diff of /trunk/Src/WinPT.cpp

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

revision 42 by werner, Fri Oct 28 08:25:30 2005 UTC revision 48 by werner, Mon Oct 31 21:14:11 2005 UTC
# Line 22  Line 22 
22  #endif  #endif
23    
24  #include <windows.h>  #include <windows.h>
 #include <windows.h>  
25    
26  #include "../resource.h"  #include "resource.h"
27  #include "wptTypes.h"  #include "wptTypes.h"
28  #include "wptW32API.h"  #include "wptW32API.h"
29  #include "wptVersion.h"  #include "wptVersion.h"
# Line 39  Line 38 
38  #include "wptFileManager.h"  #include "wptFileManager.h"
39  #include "wptContext.h"  #include "wptContext.h"
40  #include "wptCardEdit.h"  #include "wptCardEdit.h"
41    #include "wptCrypto.h"
42    
43  #define MIN_GPG_VER   "1.4.3"   /* Minimal GPG version. */  #define MIN_GPG_VER   "1.4.3"   /* Minimal GPG version. */
44  #define MIN_GPGME_VER "1.2.0"   /* Minimal GPGME version. */  #define MIN_GPGME_VER "1.2.0"   /* Minimal GPGME version. */
# Line 319  WinMain (HINSTANCE hinst, HINSTANCE hpre Line 318  WinMain (HINSTANCE hinst, HINSTANCE hpre
318                   _("GPG home directory is not set correctly.\n"                   _("GPG home directory is not set correctly.\n"
319                     "Please check the GPG registry settings:\n%s."),                     "Please check the GPG registry settings:\n%s."),
320                   winpt_strerror (rc));                   winpt_strerror (rc));
321          const char * s = get_fileopen_dlg (GetActiveWindow (),          s = get_fileopen_dlg (GetActiveWindow (),
322                                             _("Select GPG Public Keyring"),                                _("Select GPG Public Keyring"),
323                                             _("GPG Keyrings (*.gpg)\0*.gpg\0\0"),                                _("GPG Keyrings (*.gpg)\0*.gpg\0\0"),
324                                             NULL);                                NULL);
325          if (s != NULL) {          if (s != NULL) {
326              size_t n;              size_t n;
327              char * p = strrchr (s, '\\');              char * p = strrchr (s, '\\');
# Line 479  WinMain (HINSTANCE hinst, HINSTANCE hpre Line 478  WinMain (HINSTANCE hinst, HINSTANCE hpre
478            
479      if (start_gpgprefs) {      if (start_gpgprefs) {
480          char *ring;          char *ring;
481          size_t size = 0;  
482          DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_GPGPREFS, hwnd,          DialogBoxParam (glob_hinst, (LPCTSTR)IDD_WINPT_GPGPREFS, hwnd,
483                          gpgprefs_dlg_proc, 0);                          gpgprefs_dlg_proc, 0);
484          ring = get_gnupg_keyring (0, !NO_STRICT);          ring = get_gnupg_keyring (0, !NO_STRICT);

Legend:
Removed from v.42  
changed lines
  Added in v.48

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26