diff options
author | Radek Doulik <rodo@ximian.com> | 2004-01-15 21:46:47 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-01-15 21:46:47 +0800 |
commit | f9377c48533c15010ef9a76c8d6126ebe4732f88 (patch) | |
tree | c55b25b4f1c84f7367698c8f9a74b7cce794f9b9 /calendar/gui/e-cal-view.h | |
parent | 4edeba938a920fe2501776031090a479bc9dee67 (diff) | |
download | gsoc2013-evolution-f9377c48533c15010ef9a76c8d6126ebe4732f88.tar.gz gsoc2013-evolution-f9377c48533c15010ef9a76c8d6126ebe4732f88.tar.zst gsoc2013-evolution-f9377c48533c15010ef9a76c8d6126ebe4732f88.zip |
fixes #23281, some refactoring and list view get_selected_time_range
implementation
2004-01-15 Radek Doulik <rodo@ximian.com>
* gui/calendar-component.c (impl_requestCreateItem): merge with
JP's changes
2004-01-14 Radek Doulik <rodo@ximian.com>
* 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
Diffstat (limited to 'calendar/gui/e-cal-view.h')
-rw-r--r-- | calendar/gui/e-cal-view.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/calendar/gui/e-cal-view.h b/calendar/gui/e-cal-view.h index ebd830c9a0..28190b5672 100644 --- a/calendar/gui/e-cal-view.h +++ b/calendar/gui/e-cal-view.h @@ -91,7 +91,7 @@ struct _ECalendarViewClass { /* Virtual methods */ GList * (* get_selected_events) (ECalendarView *cal_view); /* a GList of ECalendarViewEvent's */ - void (* get_selected_time_range) (ECalendarView *cal_view, time_t *start_time, time_t *end_time); + gboolean (* get_selected_time_range) (ECalendarView *cal_view, time_t *start_time, time_t *end_time); void (* set_selected_time_range) (ECalendarView *cal_view, time_t start_time, time_t end_time); gboolean (* get_visible_time_range) (ECalendarView *cal_view, time_t *start_time, time_t *end_time); void (* update_query) (ECalendarView *cal_view); @@ -115,7 +115,7 @@ void e_calendar_view_set_use_24_hour_format (ECalendarView *view, gboo void e_calendar_view_set_status_message (ECalendarView *cal_view, const gchar *message); GList *e_calendar_view_get_selected_events (ECalendarView *cal_view); -void e_calendar_view_get_selected_time_range (ECalendarView *cal_view, time_t *start_time, time_t *end_time); +gboolean e_calendar_view_get_selected_time_range (ECalendarView *cal_view, time_t *start_time, time_t *end_time); void e_calendar_view_set_selected_time_range (ECalendarView *cal_view, time_t start_time, time_t end_time); gboolean e_calendar_view_get_visible_time_range (ECalendarView *cal_view, time_t *start_time, time_t *end_time); void e_calendar_view_update_query (ECalendarView *cal_view); @@ -132,10 +132,13 @@ GtkMenu *e_calendar_view_create_popup_menu (ECalendarView *cal_view); void e_calendar_view_add_event (ECalendarView *cal_view, ECal *client, time_t dtstart, icaltimezone *default_zone, icalcomponent *icalcomp, gboolean in_top_canvas); void e_calendar_view_new_appointment_for (ECalendarView *cal_view, - time_t dtstart, - time_t dtend, - gboolean all_day, - gboolean meeting); + time_t dtstart, + time_t dtend, + gboolean all_day, + gboolean meeting); +void e_calendar_view_new_appointment_full (ECalendarView *cal_view, + gboolean all_day, + gboolean meeting); void e_calendar_view_new_appointment (ECalendarView *cal_view); void e_calendar_view_edit_appointment (ECalendarView *cal_view, ECal *client, |