From 123923059156c564ccf1fb46aa92675f644ce6bf Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 10 Nov 2009 01:57:12 +0200 Subject: Enable building without Canberra-GTK --- mail/mail-session.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mail') 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 +#ifdef HAVE_CANBERRA #include +#endif #include #include @@ -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); -- cgit