aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/mail-session.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4103bc5291..142b22d7c2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,7 @@
2002-01-24 Jeffrey Stedfast <fejj@ximian.com>
+ * mail-session.c (session_system_beep): This wrapper for gdk_beep().
+
* mail-account-gui.c (is_email): Don't bother trying to see if the
domain looks like a FQDN.
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 ("");