CVS: sylpheedclaws/plugins/newmail/src newmail.c,1.1.2.12,1.1.2.13

[email protected] Fri, 15 Dec 2006 19:54:32 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/plugins/newmail/src
In directory sunsite.dk:/tmp/cvs-serv26802/src

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

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

Index: newmail.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/newmail/src/Attic/newmail.c,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -d -r1.1.2.12 -r1.1.2.13
--- newmail.c	2006/11/27 08:19:24	1.1.2.12
+++ newmail.c	2006/12/15 19:54:29	1.1.2.13
@@ -92,21 +92,14 @@
 
 gint plugin_init (gchar **error)
 {
-    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, 9, 13, 25))) {
-	*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, _("NewMail"), error))
+		return -1;
 
-    hook_id = hooks_register_hook (MAIL_POSTFILTERING_HOOKLIST, newmail_hook, NULL);
-    if (hook_id == -1) {
-	*error = g_strdup (_("Failed to register newmail hook"));
-	return (-1);
+	hook_id = hooks_register_hook (MAIL_POSTFILTERING_HOOKLIST, newmail_hook, NULL);
+  if (hook_id == -1) {
+		*error = g_strdup (_("Failed to register newmail hook"));
+		return (-1);
 	}
 
     if (!NewLog) {