aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c10
-rw-r--r--calendar/gui/dialogs/alarm-options.c2
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);