diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-02-05 14:24:38 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-02-05 14:24:38 +0000 |
commit | e9c36b0570c01798fa9aee9191c6a43717513be7 (patch) | |
tree | 21d521f1740499a07a5fa4f8bdde165ef24cad40 /mail-client/evolution/files | |
parent | Fix tree that was just broken by masking of libnotify. (diff) | |
download | gentoo-2-e9c36b0570c01798fa9aee9191c6a43717513be7.tar.gz gentoo-2-e9c36b0570c01798fa9aee9191c6a43717513be7.tar.bz2 gentoo-2-e9c36b0570c01798fa9aee9191c6a43717513be7.zip |
Fix building with x11-libs/libnotify >= 0.7.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'mail-client/evolution/files')
-rw-r--r-- | mail-client/evolution/files/evolution-2.32.1-libnotify-0.7.patch | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/mail-client/evolution/files/evolution-2.32.1-libnotify-0.7.patch b/mail-client/evolution/files/evolution-2.32.1-libnotify-0.7.patch new file mode 100644 index 000000000000..7e2474b47742 --- /dev/null +++ b/mail-client/evolution/files/evolution-2.32.1-libnotify-0.7.patch @@ -0,0 +1,81 @@ +--- calendar/gui/alarm-notify/alarm-queue.c ++++ calendar/gui/alarm-notify/alarm-queue.c +@@ -40,6 +40,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #include "alarm.h" +@@ -1606,7 +1609,12 @@ + body = g_strdup_printf ("%s %s", start_str, time_str); + } + +- n = notify_notification_new (summary, body, "stock_appointment-reminder", NULL); ++ n = notify_notification_new (summary, body, "stock_appointment-reminder" ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); ++#endif + if (!notify_notification_show(n, NULL)) + g_warning ("Could not send notification to daemon\n"); + +--- plugins/mail-notification/mail-notification.c ++++ plugins/mail-notification/mail-notification.c +@@ -47,6 +47,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + #define GCONF_KEY_ROOT "/apps/evolution/eplugin/mail-notification/" +@@ -564,9 +567,14 @@ + + notify = notify_notification_new ( + _("New email"), safetext, +- "mail-unread", NULL); ++ "mail-unread" ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); + notify_notification_attach_to_status_icon ( + notify, status_icon); ++#endif + + /* Check if actions are supported */ + if (can_support_actions ()) { +--- plugins/publish-calendar/publish-calendar.c ++++ plugins/publish-calendar/publish-calendar.c +@@ -46,6 +46,9 @@ + + #ifdef HAVE_LIBNOTIFY + #include <libnotify/notify.h> ++#ifndef NOTIFY_CHECK_VERSION ++#define NOTIFY_CHECK_VERSION(x,y,z) 0 ++#endif + #endif + + static GtkListStore *store = NULL; +@@ -150,8 +153,13 @@ + return; + } + +- notify = notify_notification_new (_("Calendar Publishing"), actual_msg->str, stock_name, NULL); ++ notify = notify_notification_new (_("Calendar Publishing"), actual_msg->str, stock_name ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ ); ++#else ++ , NULL); + notify_notification_attach_to_status_icon (notify, status_icon); ++#endif + notify_notification_set_urgency (notify, NOTIFY_URGENCY_NORMAL); + notify_notification_set_timeout (notify, NOTIFY_EXPIRES_DEFAULT); + g_timeout_add (500, show_notify_cb, NULL); |