diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-10-24 05:23:10 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-10-24 05:23:10 +0800 |
commit | 5a08b885cc36c27a533cd56f4db0d58f5fa30edf (patch) | |
tree | d31654ceea2d531849b667a6aaf9a3a388241b1b /calendar/gui/alarm-notify | |
parent | e2ff6cc193c166c3b28ebbab86a67903c9378364 (diff) | |
download | gsoc2013-evolution-5a08b885cc36c27a533cd56f4db0d58f5fa30edf.tar.gz gsoc2013-evolution-5a08b885cc36c27a533cd56f4db0d58f5fa30edf.tar.zst gsoc2013-evolution-5a08b885cc36c27a533cd56f4db0d58f5fa30edf.zip |
if the component received is an instance, add it to the recurrences hash
2003-10-23 Rodrigo Moya <rodrigo@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r-- | calendar/gui/alarm-notify/notify-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 (); |