aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r--mail/mail-session.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 2eaa4a4510..07d27d639e 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -811,14 +811,18 @@ get_folder (CamelFilterDriver *d, const char *uri, void *data, CamelException *e
static void
session_play_sound (CamelFilterDriver *driver, const char *filename, gpointer user_data)
{
- printf ("playing sound file: %s\n", filename);
-
if (!filename || !*filename)
gdk_beep ();
else
gnome_sound_play (filename);
}
+static void
+session_system_beep (CamelFilterDriver *driver, gpointer user_data)
+{
+ gdk_beep ();
+}
+
static CamelFilterDriver *
main_get_filter_driver (CamelSession *session, const char *type, CamelException *ex)
{
@@ -853,6 +857,7 @@ main_get_filter_driver (CamelSession *session, const char *type, CamelException
camel_filter_driver_set_shell_exec_func (driver, mail_execute_shell_command, NULL);
camel_filter_driver_set_play_sound_func (driver, session_play_sound, NULL);
+ camel_filter_driver_set_play_sound_func (driver, session_system_beep, NULL);
fsearch = g_string_new ("");
faction = g_string_new ("");