aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mail-notification
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-12-17 19:38:38 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-12-17 19:38:38 +0800
commit8bdb85463f20be52906aad05ce7e09ffb929e331 (patch)
treec951a34eb36a50046d61d3c2bae9cc474a4b4437 /plugins/mail-notification
parenta869552dae746d8e7f6fef3ace253c372463d657 (diff)
downloadgsoc2013-evolution-8bdb85463f20be52906aad05ce7e09ffb929e331.tar.gz
gsoc2013-evolution-8bdb85463f20be52906aad05ce7e09ffb929e331.tar.zst
gsoc2013-evolution-8bdb85463f20be52906aad05ce7e09ffb929e331.zip
** Fix for bug #504030
2007-12-17 Milan Crha <mcrha@redhat.com> ** 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
Diffstat (limited to 'plugins/mail-notification')
-rw-r--r--plugins/mail-notification/ChangeLog7
-rw-r--r--plugins/mail-notification/mail-notification.c2
2 files changed, 8 insertions, 1 deletions
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 <mcrha@redhat.com>
+
+ ** 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 <mcrha@redhat.com>
** 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);