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 | |
parent | b3d083b0561cc4ab475abfc4ce4dec9d3b8d6dab (diff) | |
download | gsoc2013-evolution-e357c59b3b07fe144e56078562df1737374d2b7c.tar.gz 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')
-rw-r--r-- | calendar/gui/alarm-notify/alarm-queue.c | 10 | ||||
-rw-r--r-- | calendar/gui/dialogs/alarm-options.c | 2 |
2 files changed, 8 insertions, 4 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); diff --git a/calendar/gui/dialogs/alarm-options.c b/calendar/gui/dialogs/alarm-options.c index 512020d4d6..5f57984306 100644 --- a/calendar/gui/dialogs/alarm-options.c +++ b/calendar/gui/dialogs/alarm-options.c @@ -649,7 +649,7 @@ malarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm) eab_destination_freev (destv); /* Description */ - text_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (dialog->dalarm_description)); + text_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (dialog->malarm_description)); gtk_text_buffer_get_start_iter (text_buffer, &text_iter_start); gtk_text_buffer_get_end_iter (text_buffer, &text_iter_end); str = gtk_text_buffer_get_text (text_buffer, &text_iter_start, &text_iter_end, FALSE); |