From 02ee28bf7749fd4f6cc764d1765405edf2e9293e Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 2 Jan 2001 22:47:28 +0000 Subject: If the component has no alarms, do not try to queue them. 2001-01-02 Federico Mena Quintero * gui/alarm-notify.c (add_component_alarms): If the component has no alarms, do not try to queue them. (remove_client_alarms): New function to remove all the queued alarms for a calendar client. (alarm_notify_remove_client): Remove the client's alarms. svn path=/trunk/; revision=7218 --- calendar/pcs/cal-backend-file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'calendar/pcs') diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index 168067f41e..10d0a35746 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -1293,9 +1293,8 @@ cal_backend_file_get_alarms_for_object (CalBackend *backend, const char *uid, if (alarms) { fill_alarm_instances_seq (&corba_alarms->alarms, alarms->alarms); cal_component_alarms_free (alarms); - } else { + } else fill_alarm_instances_seq (&corba_alarms->alarms, NULL); - } return corba_alarms; } -- cgit v1.2.3