[Winpt-commits] r59 - in trunk: Include PTD Src

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 2 14:50:49 CET 2005


Author: twoaday
Date: 2005-11-02 14:50:48 +0100 (Wed, 02 Nov 2005)
New Revision: 59

Modified:
   trunk/Include/wptVersion.h
   trunk/PTD/PTD.cpp
   trunk/PTD/PTD.def
   trunk/Src/WinPT.cpp
Log:
Removed PTD version check.


Modified: trunk/Include/wptVersion.h
===================================================================
--- trunk/Include/wptVersion.h	2005-11-02 13:36:03 UTC (rev 58)
+++ trunk/Include/wptVersion.h	2005-11-02 13:50:48 UTC (rev 59)
@@ -56,7 +56,6 @@
 #endif
 BOOL	    PTD_initialize (void);   
 void	    PTD_delete (void);
-const char* PTD_get_version (void);
 int	    PTD_jpg_show (HWND, POINT*, LPCSTR);
 HWND        PTD_get_curr_hwnd (void);
 int         PTD_is_used (void);

Modified: trunk/PTD/PTD.cpp
===================================================================
--- trunk/PTD/PTD.cpp	2005-11-02 13:36:03 UTC (rev 58)
+++ trunk/PTD/PTD.cpp	2005-11-02 13:50:48 UTC (rev 59)
@@ -237,14 +237,6 @@
 }
 
 
-/* Return version of the PTD library. */
-extern "C" const char *
-PTD_get_version (void)
-{
-    return PACKAGE_VERSION;
-}
-
-
 /* Display a JPG picture in the given window at the given point. */
 extern "C" int
 PTD_jpg_show (HWND hwnd, POINT *p, LPCSTR name)

Modified: trunk/PTD/PTD.def
===================================================================
--- trunk/PTD/PTD.def	2005-11-02 13:36:03 UTC (rev 58)
+++ trunk/PTD/PTD.def	2005-11-02 13:50:48 UTC (rev 59)
@@ -7,7 +7,6 @@
 	PTD_is_used				@203
 	PTD_keyb_send			@204
 	PTD_get_curr_hwnd		@205
-	PTD_get_version			@206	
 	PTD_jpg_show			@208
 
 	get_armor_error			@212

Modified: trunk/Src/WinPT.cpp
===================================================================
--- trunk/Src/WinPT.cpp	2005-11-02 13:36:03 UTC (rev 58)
+++ trunk/Src/WinPT.cpp	2005-11-02 13:50:48 UTC (rev 59)
@@ -259,15 +259,6 @@
     debug = 1;
 #endif
 
-    s = PTD_get_version ();
-    // FIXME: Using strcmp here is wrong
-//     if (strcmp (s, MIN_PTD_VER)) {
-// 	log_box (_("Privacy Tray Dynamic (PTD)"), MB_ERR,
-// 		 _("Please update your PTD.dll to the newest version, "
-// 		   "the version (%s) you use is too old."), s);
-// 	return 0;
-//     }
-
     if (gpg_md_selftest ()) {
 	msg_box (NULL, _("Cryptographic selftest failed."),
 		 _("WinPT Error"), MB_ERR);



More information about the Winpt-commits mailing list