CVS: sylpheedclaws/plugins/acpi_notifier/src acpi_notifier.c,1.1.2.19,1.1.2.20
[email protected] Fri, 15 Dec 2006 18:39:52 +0000
| Newsgroups | gmane.mail.sylpheed.claws.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /pack/anoncvs/sylpheedclaws/plugins/acpi_notifier/src
In directory sunsite.dk:/tmp/cvs-serv3938/src
Modified Files:
Tag: gtk2
acpi_notifier.c
Log Message:
2006-12-15 [ticho] 1.0.5cvs1
* configure.ac
* src/acpi_notifier.c
Use check_plugin_version() for version check.
Index: acpi_notifier.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/plugins/acpi_notifier/src/Attic/acpi_notifier.c,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -u -d -r1.1.2.19 -r1.1.2.20
--- acpi_notifier.c 2006/11/27 08:09:57 1.1.2.19
+++ acpi_notifier.c 2006/12/15 18:39:49 1.1.2.20
@@ -786,15 +786,10 @@
bindtextdomain(TEXTDOMAIN, LOCALEDIR);
bind_textdomain_codeset (TEXTDOMAIN, "UTF-8");
- if((claws_get_version() > VERSION_NUMERIC)) {
- *error = g_strdup(_("Your Claws Mail version is newer than the "
- "version AcpiNotifier was built with"));
- return -1;
- }
- if((claws_get_version() < MAKE_NUMERIC_VERSION(2, 4, 0, 36))) {
- *error = g_strdup(_("Your Claws Mail version is too old for AcpiNotifier"));
+ if( !check_plugin_version(MAKE_NUMERIC_VERSION(2, 6, 1, 41),
+ VERSION_NUMERIC, _("Acpi notifier"), error) )
return -1;
- }
+
acpi_init();
return 0;
}