From 5a08b885cc36c27a533cd56f4db0d58f5fa30edf Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 23 Oct 2003 21:23:10 +0000 Subject: if the component received is an instance, add it to the recurrences hash 2003-10-23 Rodrigo Moya * pcs/cal-backend-file.c (add_component): if the component received is an instance, add it to the recurrences hash table. (free_recurrence): callback for g_hash_table_foreach() to free the recurrences in the CalBackendFileObject structure. (free_object): call free_recurrence for each recurrence. (remove_recurrence_cb): g_hash_table_foreach() callback to remove recurrences from the calendar. (remove_component): remove all recurrences. (cal_backend_file_open): check write access on the file, and set read_only flag appropriately. (cal_backend_file_is_read_only): return the private flag. (cal_backend_file_init): initialize read_only flag. (cal_backend_file_get_object): deal with recurrences. * gui/alarm-notify/notify-main.c (main): unref the alarm notification service when terminating. (client_die_cb): call bonobo_main_quit instead of gtk_main_quit. svn path=/trunk/; revision=23055 --- calendar/gui/alarm-notify/notify-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c index 20078e60fe..d58b5f9e4a 100644 --- a/calendar/gui/alarm-notify/notify-main.c +++ b/calendar/gui/alarm-notify/notify-main.c @@ -55,7 +55,7 @@ static AlarmNotify *alarm_notify_service = NULL; static void client_die_cb (GnomeClient *client) { - gtk_main_quit (); + bonobo_main_quit (); } /* Sees if a session manager is present. If so, it tells the SM how to restart @@ -193,7 +193,7 @@ main (int argc, char **argv) bonobo_object_unref (BONOBO_OBJECT (factory)); factory = NULL; - /* FIXME: free the alarm_notify_service */ + bonobo_object_unref (BONOBO_OBJECT (alarm_notify_service)); alarm_queue_done (); alarm_done (); -- cgit v1.2.3