aboutsummaryrefslogtreecommitdiffstats
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
parentca40a11a3c196c24fb122bad0a831d07e8748b80 (diff)
downloadgsoc2013-evolution-257cf1da83d92281b1ad287edd016e89e8e4c034.tar.gz
gsoc2013-evolution-257cf1da83d92281b1ad287edd016e89e8e4c034.tar.zst
gsoc2013-evolution-257cf1da83d92281b1ad287edd016e89e8e4c034.zip
Make libnotify conditional
svn path=/trunk/; revision=33475
-rw-r--r--plugins/mail-notification/ChangeLog5
-rw-r--r--plugins/mail-notification/mail-notification.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/plugins/mail-notification/ChangeLog b/plugins/mail-notification/ChangeLog
index 39dd335414..33ccd3a82f 100644
--- a/plugins/mail-notification/ChangeLog
+++ b/plugins/mail-notification/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-03 Srinivasa Ragavan <sragavan@novell.com>
+
+ * mail-notification.c: (org_gnome_mail_new_notify): Make libnotify
+ notifications conditional.
+
2006-08-21 Srinivasa Ragavan <sragavan@novell.com>
** Initial commit for Mail notification plugin.
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);