diff options
author | Flo Gravo <flo.gravo@gmail.com> | 2010-10-23 06:54:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-23 06:54:27 +0800 |
commit | 8854c727c1c05bc22a7757ffa93bc9533286525f (patch) | |
tree | ee93b2f5830a4fcec4ed4947fda36865f6fddd5b /plugins/mail-notification | |
parent | 2636da7dac1683c7bac98b7a6d1ee084ea2efbca (diff) | |
download | gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.tar gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.tar.gz gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.tar.bz2 gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.tar.lz gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.tar.xz gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.tar.zst gsoc2013-evolution-8854c727c1c05bc22a7757ffa93bc9533286525f.zip |
Bug 632903 - Support libnotify-0.7
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r-- | plugins/mail-notification/mail-notification.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index f8fd766cb1..961868ad56 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -562,11 +562,15 @@ new_notify_status (EMEventTargetFolder *t) if (!notify_init ("evolution-mail-notification")) fprintf (stderr,"notify init error"); +#ifdef HAVE_LIBNOTIFY_07 notify = notify_notification_new ( - _("New email"), safetext, - "mail-unread", NULL); + _("New email"), safetext, "mail-unread"); +#else + notify = notify_notification_new ( + _("New email"), safetext, "mail-unread", NULL); notify_notification_attach_to_status_icon ( notify, status_icon); +#endif /* HAVE_LIBNOTIFY_07 */ /* Check if actions are supported */ if (can_support_actions ()) { |