From 8bdb85463f20be52906aad05ce7e09ffb929e331 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 17 Dec 2007 11:38:38 +0000 Subject: ** Fix for bug #504030 2007-12-17 Milan Crha ** Fix for bug #504030 * mail-notification.c: (new_notify_sound): Do not play sound on every new mail arrival in a row. svn path=/trunk/; revision=34720 --- plugins/mail-notification/ChangeLog | 7 +++++++ plugins/mail-notification/mail-notification.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/mail-notification/ChangeLog b/plugins/mail-notification/ChangeLog index fad75f1101..565475232d 100644 --- a/plugins/mail-notification/ChangeLog +++ b/plugins/mail-notification/ChangeLog @@ -1,3 +1,10 @@ +2007-12-17 Milan Crha + + ** Fix for bug #504030 + + * mail-notification.c: (new_notify_sound): + Do not play sound on every new mail arrival in a row. + 2007-12-07 Milan Crha ** Fix for bug #492702 diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index b2f80829ab..e365e12132 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -581,7 +581,7 @@ static void new_notify_sound (EMEventTargetFolder *t) { time_t last_newmail; - struct _SoundNotifyData data = {0, 0}; + static struct _SoundNotifyData data = {0, 0}; time (&last_newmail); -- cgit