diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-01-25 05:06:12 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-01-25 05:06:12 +0800 |
commit | d656b69c9bd1de52d6991e1694fd4dcf9856951c (patch) | |
tree | c483a53caa897cbd69e25e4170a80c2e1ca663ea /mail/mail-session.c | |
parent | 54e6382ccd72520ae95a5e6bebe010753f3f3e73 (diff) | |
download | gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar.gz gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar.zst gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.zip |
This wrapper for gdk_beep().
2002-01-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (session_system_beep): This wrapper for gdk_beep().
svn path=/trunk/; revision=15460
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 9 |
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 (""); |