From d656b69c9bd1de52d6991e1694fd4dcf9856951c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 24 Jan 2002 21:06:12 +0000 Subject: This wrapper for gdk_beep(). 2002-01-24 Jeffrey Stedfast * mail-session.c (session_system_beep): This wrapper for gdk_beep(). svn path=/trunk/; revision=15460 --- mail/ChangeLog | 2 ++ mail/mail-session.c | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'mail') 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 + * 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 (""); -- cgit