/[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 23 by twoaday, Fri Sep 30 10:10:16 2005 UTC revision 24 by twoaday, Sat Oct 8 10:43:08 2005 UTC
# Line 60  update_keycache (HWND hwnd) Line 60  update_keycache (HWND hwnd)
60  } /* update_keycache */  } /* update_keycache */
61    
62    
63    /* Set GPGME debug mode. If @val is 0, the debug mode is disabled. */
64    void
65    gpg_set_debug_mode (int val)
66    {      
67        if (val)
68            putenv ("GPGME_DEBUG=5:gpgme.dbg");
69        else
70            putenv ("GPGME_DEBUG=");
71    }
72    
73  static char *  static char *
74  get_gettext_lang (void)  get_gettext_lang (void)
75  {      {    
# Line 74  get_gettext_lang (void) Line 84  get_gettext_lang (void)
84  static void  static void
85  load_gettext (void)  load_gettext (void)
86  {  {
87      char * nls = NULL;      char *nls = NULL;
88      char * file = NULL;      char *file = NULL;
89    
90      nls = get_gettext_lang ();      nls = get_gettext_lang ();
91      if (nls) {      if (nls) {
# Line 223  win_main (HINSTANCE hinst, HINSTANCE hpr Line 233  win_main (HINSTANCE hinst, HINSTANCE hpr
233      HWND hwnd = NULL;      HWND hwnd = NULL;
234    
235      glob_hinst = hinst;      glob_hinst = hinst;
236        
237      #ifdef _DEBUG      #ifdef _DEBUG
238      gpgme_set_debug_mode (1);      gpg_set_debug_mode (1);
239        debug = 1;
240      #endif      #endif
241    
242      s = PTD_get_version ();      s = PTD_get_version ();
# Line 242  win_main (HINSTANCE hinst, HINSTANCE hpr Line 253  win_main (HINSTANCE hinst, HINSTANCE hpr
253          return 0;          return 0;
254      }      }
255    
256        s = gpgme_check_version ("1.1.0");
257        if (!s || !*s) {
258            msg_box (NULL, _("A newer GPGME version is needed."), "WinPT Error", MB_ERR);
259            return 0;
260        }
261    
262      if (cmdline && stristr (cmdline, "--mobile")) {      if (cmdline && stristr (cmdline, "--mobile")) {
263          msg_box (NULL, "WARNING: mobile modus is not fully implemented yet!",          msg_box (NULL, "WARNING: mobile modus is not fully implemented yet!",
264                   "WinPT", MB_INFO);                   "WinPT", MB_INFO);

Legend:
Removed from v.23  
changed lines
  Added in v.24

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26