CVS: sylpheedclaws/plugins/rssyl/src plugin.c,1.1.2.20,1.1.2.21 rssyl.h,1.1.2.7,1.1.2.8
[email protected] Fri, 15 Dec 2006 17:41:43 +0000
| Newsgroups | gmane.mail.sylpheed.claws.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /pack/anoncvs/sylpheedclaws/plugins/rssyl/src
In directory sunsite.dk:/tmp/cvs-serv22356/src
Modified Files:
Tag: gtk2
plugin.c rssyl.h
Log Message:
2006-12-15 [ticho] 0.8.0cvs1
* configure.ac
* src/plugin.c
* src/rssyl.h
Use check_plugin_version() for version check.
Index: plugin.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/rssyl/src/Attic/plugin.c,v
retrieving revision 1.1.2.20
retrieving revision 1.1.2.21
diff -u -d -r1.1.2.20 -r1.1.2.21
--- plugin.c 2006/11/27 08:21:54 1.1.2.20
+++ plugin.c 2006/12/15 17:41:39 1.1.2.21
@@ -38,15 +38,9 @@
bindtextdomain(TEXTDOMAIN, LOCALEDIR);
bind_textdomain_codeset(TEXTDOMAIN, "UTF-8");
- if( claws_get_version() > VERSION_NUMERIC ) {
- *error = g_strdup(_("Your version of Claws Mail is newer than the version RSSyl was built with."));
- return -1;
- }
-
- if( claws_get_version() < MAKE_NUMERIC_VERSION(2, 0, 0, 94) ) {
- *error = g_strdup(_("Your version of Claws Mail is too old for RSSyl."));
+ if( !check_plugin_version(MAKE_NUMERIC_VERSION(2, 6, 1, 41),
+ VERSION_NUMERIC, PLUGIN_NAME, error) )
return -1;
- }
curl_global_init(CURL_GLOBAL_DEFAULT);
rssyl_init();
@@ -61,7 +55,7 @@
const gchar *plugin_name(void)
{
- return _("RSSyl");
+ return PLUGIN_NAME;
}
const gchar *plugin_desc(void)
Index: rssyl.h
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/rssyl/src/Attic/rssyl.h,v
retrieving revision 1.1.2.7
retrieving revision 1.1.2.8
diff -u -d -r1.1.2.7 -r1.1.2.8
--- rssyl.h 2006/11/08 09:55:18 1.1.2.7
+++ rssyl.h 2006/12/15 17:41:39 1.1.2.8
@@ -5,8 +5,10 @@
#include <folder.h>
+#define PLUGIN_NAME (_("RSSyl"))
+
/* Name of directory in rcdir where RSSyl will store its data. */
-#define RSSYL_DIR "RSSyl"
+#define RSSYL_DIR "RSSyl"
/* Default RSSyl mailbox name */
#define RSSYL_DEFAULT_MAILBOX _("My Feeds")