CVS: sylpheedclaws/plugins/synce/src synce_plugin.c,1.2.2.10,1.2.2.11

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

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

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

Index: synce_plugin.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/synce/src/synce_plugin.c,v
retrieving revision 1.2.2.10
retrieving revision 1.2.2.11
diff -u -d -r1.2.2.10 -r1.2.2.11
--- synce_plugin.c	2006/11/27 08:23:48	1.2.2.10
+++ synce_plugin.c	2006/12/15 20:25:56	1.2.2.11
@@ -38,15 +38,9 @@
 gint plugin_init(gchar **error)
 {
   /* version check */
-  if((claws_get_version() > VERSION_NUMERIC)) {
-    *error = g_strdup("Your Claws Mail version is newer than the version "
-		      "the plugin was built with");
-    return -1;
-  }
-  if((claws_get_version() < MAKE_NUMERIC_VERSION(1, 0, 3, 4))) {
-    *error = g_strdup("Your Claws Mail version is too old");
-    return -1;
-  }
+	if(!check_plugin_version(MAKE_NUMERIC_VERSION(2, 6, 1, 41),
+				VERSION_NUMERIC, "SynCE", error))
+		return -1;
 
   synce_gtk_init();