diff options
author | Alfred Peng <alfred.peng@sun.com> | 2004-03-23 17:38:27 +0800 |
---|---|---|
committer | Jack Jia <jackjia@src.gnome.org> | 2004-03-23 17:38:27 +0800 |
commit | e357c59b3b07fe144e56078562df1737374d2b7c (patch) | |
tree | 2be727f57ae6f44cb051ed25fd8d5e3510be9b5a /calendar/gui/alarm-notify/alarm-queue.c | |
parent | b3d083b0561cc4ab475abfc4ce4dec9d3b8d6dab (diff) | |
download | gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar.gz gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar.bz2 gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar.lz gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar.xz gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar.zst gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.zip |
get the mail alarm description message from "malarm_description" instead
2004-03-23 Alfred Peng <alfred.peng@sun.com>
* gui/dialogs/alarm-options.c (malarm_widgets_to_alarm): get
the mail alarm description message from "malarm_description"
instead of "dalarm_description".
2004-03-23 Alfred Peng <alfred.peng@sun.com>
* gui/alarm-notify/alarm-queue.c (audio_notification): If there
is no attachment for a audio reminder, only a message window
shows up.
Get a beep sound even without attachment for audio reminder.
svn path=/trunk/; revision=25154
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-queue.c')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index 85bc818f55..41088a3c7e 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1041,6 +1041,7 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, ECalComponent *comp; ECalComponentAlarm *alarm; icalattach *attach; + int flag = 0; comp = cqa->alarms->comp; qa = lookup_queued_alarm (cqa, alarm_id); @@ -1058,12 +1059,15 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, url = icalattach_get_url (attach); - if (url && *url && g_file_test (url, G_FILE_TEST_EXISTS)) + if (url && *url && g_file_test (url, G_FILE_TEST_EXISTS)) { + flag = 1; gnome_sound_play (url); /* this sucks */ - else - gdk_beep (); + } } + if (!flag) + gdk_beep (); + if (attach) icalattach_unref (attach); |