CVS: sylpheedclaws/plugins/smime/src plugin.c,1.1.2.6,1.1.2.7

[email protected] Fri, 15 Dec 2006 20:23:51 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/plugins/smime/src
In directory sunsite.dk:/tmp/cvs-serv3323/src

Modified Files:
      Tag: gtk2
	plugin.c 
Log Message:
2006-12-15 [ticho]	0.5.7cvs1

	* configure.ac
	* src/plugin.c
		Use check_plugin_version() for version check. 

Index: plugin.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/smime/src/Attic/plugin.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- plugin.c	2006/11/27 08:22:47	1.1.2.6
+++ plugin.c	2006/12/15 20:23:48	1.1.2.7
@@ -32,15 +32,9 @@
 
 gint plugin_init(gchar **error)
 {
-	if ((claws_get_version() > VERSION_NUMERIC)) {
-		*error = g_strdup("Your version of Claws Mail is newer than the version the S/MIME plugin was built with");
-		return -1;
-	}
-
-	if ((claws_get_version() < MAKE_NUMERIC_VERSION(2, 1, 0, 1))) {
-		*error = g_strdup("Your version of Claws Mail is too old for the S/MIME plugin");
+	if (!check_plugin_version(MAKE_NUMERIC_VERSION(2, 6, 1, 41),
+				VERSION_NUMERIC, _("S/MIME"), error))
 		return -1;
-	}
 
 	smime_init();