diff options
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r-- | plugins/mail-notification/ChangeLog | 5 | ||||
-rw-r--r-- | plugins/mail-notification/mail-notification.c | 2 |
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); |