From f9377c48533c15010ef9a76c8d6126ebe4732f88 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 15 Jan 2004 13:46:47 +0000 Subject: fixes #23281, some refactoring and list view get_selected_time_range implementation 2004-01-15 Radek Doulik * gui/calendar-component.c (impl_requestCreateItem): merge with JP's changes 2004-01-14 Radek Doulik * gui/e-cal-list-view.c (e_cal_list_view_get_selected_time_range): new implementation, use time range from selected event * gui/e-cal-view.c (e_calendar_view_get_selected_time_range): return gboolean, TRUE if requested time was set, FALSE otherwise (e_calendar_view_new_appointment_full): use current time if time range is unavailable * gui/calendar-component.c (impl_requestCreateItem): use e_calendar_view_new_appointment_full instead of cal_comp_event_new_with_current_time * gui/e-cal-view.c (e_calendar_view_new_appointment_full): new helper function * gui/comp-editor-factory.c (edit_new): use cal_comp_event_new_with_current_time * gui/calendar-component.c (impl_requestCreateItem): use cal_comp_event_new_with_current_time * gui/comp-util.c (cal_comp_event_new_with_current_time): new function, cut'n'pasted from get_default_event (calendar-component.c and comp-editor-factory.c) svn path=/trunk/; revision=24238 --- calendar/gui/comp-util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'calendar/gui/comp-util.h') diff --git a/calendar/gui/comp-util.h b/calendar/gui/comp-util.h index 0f4542aba1..26c7881e99 100644 --- a/calendar/gui/comp-util.h +++ b/calendar/gui/comp-util.h @@ -40,6 +40,7 @@ gboolean cal_comp_is_on_server (ECalComponent *comp, ECal *client); ECalComponent *cal_comp_event_new_with_defaults (ECal *client); +ECalComponent *cal_comp_event_new_with_current_time (ECal *client, gboolean all_day); ECalComponent *cal_comp_task_new_with_defaults (ECal *client); #endif -- cgit