Mercurial > pidgin
changeset 9354:a5ec9e73f46d
[gaim-migrate @ 10162]
Because the Evolution project doesn't bump their version numbers until just
before release, and they broke backwards-compatibility since the last
evolution-data-server release in the header files, those people using
0.0.95cvs are going to not be able to compile gevolution until 0.0.95 comes
out, or unless they comment out the #include <libebook/e-book-async.h> in
gevolution.h. The code I added here centralizes the include files a bit
more, and checks if we're using 0.0.95 or not. The Evo guys are releasing
hopefully next week or the week after, I think, so that should take care of
it.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 22 Jun 2004 22:42:10 +0000 |
parents | b8138f3959dc |
children | 59afa74ecebb |
files | plugins/gevolution/add_buddy_dialog.c plugins/gevolution/assoc-buddy.c plugins/gevolution/gevo-util.c plugins/gevolution/gevolution.c plugins/gevolution/gevolution.h plugins/gevolution/new_person_dialog.c |
diffstat | 6 files changed, 10 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/gevolution/add_buddy_dialog.c Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/add_buddy_dialog.c Tue Jun 22 22:42:10 2004 +0000 @@ -28,9 +28,6 @@ #include <stdlib.h> #include <bonobo/bonobo-main.h> -#include <libebook/e-book.h> -#include <libebook/e-book-async.h> -#include <libedataserver/e-source-list.h> enum {
--- a/plugins/gevolution/assoc-buddy.c Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/assoc-buddy.c Tue Jun 22 22:42:10 2004 +0000 @@ -30,9 +30,6 @@ #include <stdlib.h> #include <bonobo/bonobo-main.h> -#include <libebook/e-book.h> -#include <libebook/e-book-async.h> -#include <libedataserver/e-source-list.h> enum {
--- a/plugins/gevolution/gevo-util.c Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/gevo-util.c Tue Jun 22 22:42:10 2004 +0000 @@ -22,8 +22,6 @@ #include "gtkblist.h" #include "gtkutils.h" -#include <libebook/e-book.h> - #include "gevolution.h" void
--- a/plugins/gevolution/gevolution.c Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/gevolution.c Tue Jun 22 22:42:10 2004 +0000 @@ -36,7 +36,6 @@ #include <libedata-book/Evolution-DataServer-Addressbook.h> #include <libebook/e-book-listener.h> -#include <libebook/e-book-async.h> #include <libedata-book/e-data-book-factory.h> #include <bonobo/bonobo-main.h>
--- a/plugins/gevolution/gevolution.h Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/gevolution.h Tue Jun 22 22:42:10 2004 +0000 @@ -25,8 +25,18 @@ # include "config.h" #endif +#define EBOOK_CHECK_VERSION(major, minor, micro) \ + (LIBEBOOK_MAJOR_VER > (major) || \ + (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ + (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ + LIBEBOOK_MICRO_VER >= (micro))) + #include <libebook/e-book.h> +#if !EBOOK_CHECK_VERSION(0, 0, 95) +# include <libebook/e-book-async.h> +#endif + typedef struct { GaimAccount *account; @@ -87,12 +97,6 @@ } GevoAssociateBuddyDialog; -#define EBOOK_CHECK_VERSION(major, minor, micro) \ - (LIBEBOOK_MAJOR_VER > (major) || \ - (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ - (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ - LIBEBOOK_MICRO_VER >= (micro))) - void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username, const char *group, const char *alias); void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog,
--- a/plugins/gevolution/new_person_dialog.c Tue Jun 22 21:12:31 2004 +0000 +++ b/plugins/gevolution/new_person_dialog.c Tue Jun 22 22:42:10 2004 +0000 @@ -25,9 +25,6 @@ #include "gevolution.h" -#include <libebook/e-book-async.h> -#include <libedataserver/e-source-list.h> - static GtkWidget * add_pref_box(GtkSizeGroup *sg, GtkWidget *parent, const char *text, GtkWidget *widget)