diff options
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); |