From d9211502d97552e4939b993d4491e05d532d5fc9 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 5 Apr 2005 07:28:15 +0000 Subject: preprocessor hackery using the value of DBUS_VERSION to cope with changes 2005-03-11 David Malcolm * new-mail-notify.c: preprocessor hackery using the value of DBUS_VERSION to cope with changes to the semantics of dbus_message_append_args * Makefile.am: define the DBUS_VERSION in the preprocessor svn path=/trunk/; revision=29154 --- plugins/new-mail-notify/ChangeLog | 8 ++++++++ plugins/new-mail-notify/Makefile.am | 1 + plugins/new-mail-notify/new-mail-notify.c | 4 ++++ 3 files changed, 13 insertions(+) (limited to 'plugins/new-mail-notify') diff --git a/plugins/new-mail-notify/ChangeLog b/plugins/new-mail-notify/ChangeLog index ea34c56de4..45d2bcede2 100644 --- a/plugins/new-mail-notify/ChangeLog +++ b/plugins/new-mail-notify/ChangeLog @@ -1,3 +1,11 @@ +2005-03-11 David Malcolm + + * new-mail-notify.c: preprocessor hackery using the value of + DBUS_VERSION to cope with changes to the semantics of + dbus_message_append_args + + * Makefile.am: define the DBUS_VERSION in the preprocessor + 2005-02-24 Björn Torkelsson * org-gnome-new-mail-notify.eplug.in: Added id for mail preferences. diff --git a/plugins/new-mail-notify/Makefile.am b/plugins/new-mail-notify/Makefile.am index bef0fd41d1..31c868b1ff 100644 --- a/plugins/new-mail-notify/Makefile.am +++ b/plugins/new-mail-notify/Makefile.am @@ -1,6 +1,7 @@ INCLUDES = \ -I$(top_srcdir) \ -DDBUS_API_SUBJECT_TO_CHANGE=1 \ + -DDBUS_VERSION=$(DBUS_VERSION) \ $(EVOLUTION_MAIL_CFLAGS) \ $(NMN_CFLAGS) diff --git a/plugins/new-mail-notify/new-mail-notify.c b/plugins/new-mail-notify/new-mail-notify.c index e6147a1564..230a7fb8b1 100644 --- a/plugins/new-mail-notify/new-mail-notify.c +++ b/plugins/new-mail-notify/new-mail-notify.c @@ -113,7 +113,11 @@ send_dbus_message (const char *message_name, const char *data) /* Appends the data as an argument to the message */ dbus_message_append_args (message, +#if DBUS_VERSION >= 310 + DBUS_TYPE_STRING, &data, +#else DBUS_TYPE_STRING, data, +#endif DBUS_TYPE_INVALID); /* Sends the message */ -- cgit v1.2.3