CVS: sylpheedclaws/plugins/att_remover/src att_remover.c,1.1.2.13,1.1.2.14
[email protected] Fri, 15 Dec 2006 18:55:41 +0000
| Newsgroups | gmane.mail.sylpheed.claws.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /pack/anoncvs/sylpheedclaws/plugins/att_remover/src
In directory sunsite.dk:/tmp/cvs-serv7361/src
Modified Files:
Tag: gtk2
att_remover.c
Log Message:
2006-12-15 [ticho] 1.0.4cvs1
* configure.ac
* src/att_remover.c
Use check_plugin_version() for version check.
Index: att_remover.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/att_remover/src/Attic/att_remover.c,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -u -d -r1.1.2.13 -r1.1.2.14
--- att_remover.c 2006/11/27 08:11:56 1.1.2.13
+++ att_remover.c 2006/12/15 18:55:38 1.1.2.14
@@ -169,15 +169,10 @@
MainWindow *mainwin = mainwindow_get_mainwindow();
SummaryView *summaryview = mainwin->summaryview;
- if((claws_get_version() > VERSION_NUMERIC)) {
- *error = g_strdup("Your Claws Mail version is newer than the version "
- "AttRemover was built with");
- return -1;
- }
- if((claws_get_version() < MAKE_NUMERIC_VERSION(1, 9, 13, 0))) {
- *error = g_strdup("Your Claws Mail version is too old for AttRemover");
+ if( !check_plugin_version(MAKE_NUMERIC_VERSION(2, 6, 1, 41),
+ VERSION_NUMERIC, _("AttRemover"), error) )
return -1;
- }
+
ifactory = gtk_item_factory_from_widget(mainwin->menubar);
gtk_item_factory_create_item(ifactory, &remove_att_menu, mainwin, 1);
gtk_item_factory_create_item(summaryview->popupfactory, &remove_att_context_menu, summaryview, 1);