aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-25 05:06:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-25 05:06:12 +0800
commitd656b69c9bd1de52d6991e1694fd4dcf9856951c (patch)
treec483a53caa897cbd69e25e4170a80c2e1ca663ea /mail
parent54e6382ccd72520ae95a5e6bebe010753f3f3e73 (diff)
downloadgsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar
gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar.gz
gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar.bz2
gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar.lz
gsoc2013-evolution-d656b69c9bd1de52d6991e1694fd4dcf9856951c.tar.xz
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')
-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 ("");