diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-08-02 15:33:38 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-08-02 15:33:38 +0800 |
commit | 31eb98be3b45881d6208b58982d42aa575e67a1f (patch) | |
tree | e1ab4031590896b8787e36b5d7d91f2e1bb71920 /calendar/gui/e-cal-list-view.c | |
parent | 56f7abcb1514da29fd9e6453a7292222742f92f2 (diff) | |
download | gsoc2013-evolution-31eb98be3b45881d6208b58982d42aa575e67a1f.tar.gz gsoc2013-evolution-31eb98be3b45881d6208b58982d42aa575e67a1f.tar.zst gsoc2013-evolution-31eb98be3b45881d6208b58982d42aa575e67a1f.zip |
Fixes #57622
2004-07-30 Rodrigo Moya <rodrigo@novell.com>
Fixes #57622
* gui/e-cal-model.h: added ECalModelFlags enum type.
* gui/e-cal-model.c (e_cal_model_set_flags, e_cal_model_get_flags):
new functions.
(e_cal_model_init): initialize the new internal field to keep the flags.
(e_cal_view_objects_added_cb): expand recurrences if the model flags
contain the EXPAND_RECUR bit.
(e_cal_view_objects_modified_cb): if EXPAND_RECUR is on, remove all
recurrences and regenerate them.
(e_cal_view_objects_removed_cb): remove all instances for given UIDs.
(add_new_client): killed warning.
(get_dtstart): use the instance_start time when dealing with recurrences.
* gui/e-cal-model-calendar.c (get_dtend): use the instance_end time
when dealing with recurrences.
* gui/e-cal-list-view.c (e_cal_list_view_new): set the EXPAND_RECUR
flag on the model for the list view.
* gui/e-week-view.c (e_week_view_add_event):
* gui/e-day-view.c (e_day_view_add_event): fill in the instance's
start and end times in the ECalModelComponent struct.
* gui/e-calendar-view.c (e_calendar_view_delete_selected_occurrence):
use the instance_start field to retrieve the RECUR-ID, now that all the
views fill it in.
svn path=/trunk/; revision=26790
Diffstat (limited to 'calendar/gui/e-cal-list-view.c')
-rw-r--r-- | calendar/gui/e-cal-list-view.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-list-view.c b/calendar/gui/e-cal-list-view.c index ab1feefa7c..db194895fd 100644 --- a/calendar/gui/e-cal-list-view.c +++ b/calendar/gui/e-cal-list-view.c @@ -318,6 +318,7 @@ e_cal_list_view_new (void) ECalModel *model; model = E_CAL_MODEL (e_cal_model_calendar_new ()); + e_cal_model_set_flags (model, E_CAL_MODEL_FLAGS_EXPAND_RECURRENCES); cal_list_view = g_object_new (e_cal_list_view_get_type (), "model", model, NULL); if (!e_cal_list_view_construct (cal_list_view)) { |