aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-notification/mail-notification.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-05-03 17:03:01 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-05-03 17:03:01 +0800
commit257cf1da83d92281b1ad287edd016e89e8e4c034 (patch)
treef8817af4ddaf871a9afe2375a028a9a814728dfd /plugins/mail-notification/mail-notification.c
parentca40a11a3c196c24fb122bad0a831d07e8748b80 (diff)
downloadgsoc2013-evolution-257cf1da83d92281b1ad287edd016e89e8e4c034.tar.gz
gsoc2013-evolution-257cf1da83d92281b1ad287edd016e89e8e4c034.tar.zst
gsoc2013-evolution-257cf1da83d92281b1ad287edd016e89e8e4c034.zip
Make libnotify conditional
svn path=/trunk/; revision=33475
Diffstat (limited to 'plugins/mail-notification/mail-notification.c')
-rw-r--r--plugins/mail-notification/mail-notification.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c
index 5ce66240a3..1d9ea52eae 100644
--- a/plugins/mail-notification/mail-notification.c
+++ b/plugins/mail-notification/mail-notification.c
@@ -99,6 +99,7 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
gtk_status_icon_set_tooltip (status_icon, msg);
gtk_status_icon_set_visible (status_icon, TRUE);
+#ifdef HAVE_LIBNOTIFY
if (!notify_init("notify-send"))
fprintf(stderr,"notify init error");
@@ -113,6 +114,7 @@ org_gnome_mail_new_notify (EPlugin *ep, EMEventTargetFolder *t)
notify_notification_set_timeout(notify, expire_timeout);
notify_notification_show(notify, NULL);
}
+#endif
g_free (folder);
g_free (msg);