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 /calendar/gui/alarm-notify | |
parent | 3dfdf087fc7657905fc7804b59414ecd3d74028e (diff) | |
download | gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.gz gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.tar.zst gsoc2013-evolution-123923059156c564ccf1fb46aa92675f644ce6bf.zip |
Enable building without Canberra-GTK
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 <glib.h> #include <gtk/gtk.h> #include <glib/gi18n.h> + +#ifdef HAVE_CANBERRA #include <canberra-gtk.h> +#endif #include <libecal/e-cal-time-util.h> #include <libecal/e-cal-component.h> @@ -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); |