aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-04-23 05:15:41 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-04-23 05:15:41 +0800
commitf58154d28e8bd4ab287a31f419db93ac4c24fb60 (patch)
treefc96e2b00ead71ccb49fea2116aa27d6aea845a8 /calendar/gui/alarm-notify
parentc43e7c7ab7a428bdd306e12d1dfd9a499d80451e (diff)
downloadgsoc2013-evolution-f58154d28e8bd4ab287a31f419db93ac4c24fb60.tar.gz
gsoc2013-evolution-f58154d28e8bd4ab287a31f419db93ac4c24fb60.tar.zst
gsoc2013-evolution-f58154d28e8bd4ab287a31f419db93ac4c24fb60.zip
Fixes part of #41148, #41216 and #41235
2003-04-22 Rodrigo Moya <rodrigo@ximian.com> Fixes part of #41148, #41216 and #41235 * gui/e-itip-control.c (init): * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct, e_meeting_time_selector_add_key_color): * gui/e-timezone-entry.c (e_timezone_entry_init): * gui/gnome-cal.c (setup_widgets): * gui/tasks-control.c (confirm_expunge): * gui/dialogs/comp-editor.c (setup_widgets): * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): * gui/dialogs/meeting-page.c (meeting_page_construct): * gui/dialogs/recurrence-page.c (make_weekly_special, make_monthly_special, make_ending_count_special): * gui/dialogs/schedule-page.c (schedule_page_construct): use HIG-suggested spacing. svn path=/trunk/; revision=20927
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index fa04a63daa..d6fda7d37c 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -825,9 +825,12 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa,
const char *url;
url = icalattach_get_url (attach);
- g_assert (url != NULL);
- gnome_sound_play (url); /* this sucks */
+ if (url && *url) {
+ gnome_sound_init ("localhost");
+ gnome_sound_play (url); /* this sucks */
+ } else
+ gdk_beep ();
}
if (attach)