diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-07-17 07:15:04 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-07-17 07:15:04 +0800 |
commit | 96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901 (patch) | |
tree | c4151f2597d4d74d966f4bfd0c3aa1f33a5fae20 /calendar/gui/gnome-cal.h | |
parent | a15a6521f85105956a651e96e7e671f7b819ff95 (diff) | |
download | gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.tar gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.tar.gz gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.tar.bz2 gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.tar.lz gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.tar.xz gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.tar.zst gsoc2013-evolution-96d8c5e1a3ade337ee1e7dcbe81b2b52d2a90901.zip |
new function, which uses a CalQuery to retrieve the objects older than a
2003-07-16 Rodrigo Moya <rodrigo@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/gnome-cal.h')
-rw-r--r-- | calendar/gui/gnome-cal.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |