From 96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 16 Jul 2003 23:15:04 +0000 Subject: new function, which uses a CalQuery to retrieve the objects older than a 2003-07-16 Rodrigo Moya * gui/gnome-cal.[ch] (gnome_calendar_purge): new function, which uses a CalQuery to retrieve the objects older than a given date. (check_instance_cb): callback for cal_recur_generate_instances. (purging_obj_updated_cb): call check_instance_cb on each recurrence to double-check the event can be deleted. (purging_query_done_cb, purging_eval_error_cb): needed callbacks to finish the query. (gnome_calendar_destroy): free new members. * gui/calendar-commands.c (purge_cmd): added implementation for the 'Purge' menu item. svn path=/trunk/; revision=21846 --- calendar/gui/gnome-cal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'calendar/gui/gnome-cal.h') diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h index 22bae4f735..e573a55fbb 100644 --- a/calendar/gui/gnome-cal.h +++ b/calendar/gui/gnome-cal.h @@ -184,6 +184,8 @@ void gnome_calendar_paste_clipboard (GnomeCalendar *gcal); void gnome_calendar_delete_selection (GnomeCalendar *gcal); void gnome_calendar_delete_selected_occurrence (GnomeCalendar *gcal); +void gnome_calendar_purge (GnomeCalendar *gcal, + time_t older_than); -- cgit