CVS: sylpheedclaws/plugins/notification/src notification_plugin.c,1.1.2.11,1.1.2.12

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

Modified Files:
      Tag: gtk2
	notification_plugin.c 
Log Message:
2006-12-15 [ticho]	0.7cvs2

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

Index: notification_plugin.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/notification/src/Attic/notification_plugin.c,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -d -r1.1.2.11 -r1.1.2.12
--- notification_plugin.c	2006/11/27 08:20:21	1.1.2.11
+++ notification_plugin.c	2006/12/15 19:59:40	1.1.2.12
@@ -90,16 +90,9 @@
   gchar *rcpath;
 
   /* Version check */
-  if(claws_get_version() > VERSION_NUMERIC) {
-    *error = g_strdup("Your Claws Mail version is newer than the version "
-		      "the Notification plugin was built with");
-    return -1;
-  }
-  if(claws_get_version() < MAKE_NUMERIC_VERSION(1, 9, 15, 94)) {
-    *error = g_strdup("Your Claws Mail version is too old for the "
-		      "Notification plugin");
-    return -1;
-  }
+	if (!check_plugin_version(MAKE_NUMERIC_VERSION(2, 6, 1, 41),
+				VERSION_NUMERIC, "Notification", error))
+		return -1;
 
   /* Check if threading is enabled */
   if(!g_thread_supported()) {