aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-04-23 09:36:42 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-04-23 09:36:42 +0000
commit53625e2a9ca3c64ec08daf1d7233551c166fdbdf (patch)
treef82e186852d635a5e90356c547484c31707aebdb /src/inc.c
parent51b29ad3772d54b8f1e841c0c84df703eed21c21 (diff)
win32: added an option to play sound when new messages arrive.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3053 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inc.c b/src/inc.c
index 6ffbc2ce..ddcfe3ed 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -231,6 +231,14 @@ static void inc_finished(MainWindow *mainwin, GSList *msg_counts)
folderview_update_item(item, TRUE);
}
+ /* Notification */
+
+ if (new_messages > 0 &&
+ prefs_common.enable_newmsg_notify_sound &&
+ prefs_common.newmsg_notify_sound) {
+ play_sound(prefs_common.newmsg_notify_sound, TRUE);
+ }
+
if (new_messages > 0 &&
prefs_common.enable_newmsg_notify &&
prefs_common.newmsg_notify_cmd) {