diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-04-23 09:36:42 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-04-23 09:36:42 +0000 |
commit | 53625e2a9ca3c64ec08daf1d7233551c166fdbdf (patch) | |
tree | f82e186852d635a5e90356c547484c31707aebdb /src/inc.c | |
parent | 51b29ad3772d54b8f1e841c0c84df703eed21c21 (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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) { |