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 --- calendar/gui/alarm-notify/alarm-queue.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'calendar') diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 53963da5eb..5544d49c99 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -30,7 +30,10 @@ #include #include #include + +#ifdef HAVE_CANBERRA #include +#endif #include #include @@ -1632,9 +1635,11 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, g_error_free (error); } else if (g_file_test (filename, G_FILE_TEST_EXISTS)) { flag = 1; +#ifdef HAVE_CANBERRA ca_context_play ( ca_gtk_context_get(), 0, CA_PROP_MEDIA_FILENAME, filename, NULL); +#endif } g_free (filename); -- cgit