diff options
author | Tor Lillqvist <tml@iki.fi> | 2009-11-10 07:57:12 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2009-11-11 21:29:51 +0800 |
commit | 123923059156c564ccf1fb46aa92675f644ce6bf (patch) | |
tree | 19d4de6f0c27403e8a42e09cd4a54681dadc63cd /mail | |
parent | 3dfdf087fc7657905fc7804b59414ecd3d74028e (diff) | |
download | gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.gz gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.bz2 gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.lz gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.xz gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.zst gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.zip |
Enable building without Canberra-GTK
Diffstat (limited to 'mail')
-rw-r--r-- | mail/mail-session.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index 967909d6e3..14aec15866 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -33,7 +33,9 @@ #include <gconf/gconf-client.h> +#ifdef HAVE_CANBERRA #include <canberra-gtk.h> +#endif #include <libedataserverui/e-passwords.h> #include <libedataserver/e-flag.h> @@ -462,11 +464,13 @@ get_folder (CamelFilterDriver *d, const gchar *uri, gpointer data, CamelExceptio static void main_play_sound (CamelFilterDriver *driver, gchar *filename, gpointer user_data) { - if (filename && *filename) + if (filename && *filename) { +#ifdef HAVE_CANBERRA ca_context_play(ca_gtk_context_get(), 0, CA_PROP_MEDIA_FILENAME, filename, NULL); - else +#endif + } else gdk_beep (); g_free (filename); |