diff options
author | JP Rosevear <jpr@novell.com> | 2005-03-21 22:29:16 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2005-03-21 22:29:16 +0800 |
commit | 61b62f4127f42ab2b464fcb6e5dcc6a48507c24d (patch) | |
tree | 44a55d83bdc1166842aefbe1a9bbf23a665462c5 /calendar/gui/e-calendar-view.c | |
parent | c090f32fa53222b3d57b4633ffcf551801e4b7b7 (diff) | |
download | gsoc2013-evolution-61b62f4127f42ab2b464fcb6e5dcc6a48507c24d.tar.gz gsoc2013-evolution-61b62f4127f42ab2b464fcb6e5dcc6a48507c24d.tar.zst gsoc2013-evolution-61b62f4127f42ab2b464fcb6e5dcc6a48507c24d.zip |
abort sequence (e_day_view_on_top_canvas_motion): prevent drag of
2005-03-21 JP Rosevear <jpr@novell.com>
* gui/e-day-view.c (e_day_view_on_main_canvas_drag_data_received):
abort sequence
(e_day_view_on_top_canvas_motion): prevent drag of recurring events
(e_day_view_on_main_canvas_motion): ditto
* gui/e-calendar-view.c (on_unrecur_appointment): clear recur id
svn path=/trunk/; revision=29073
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 6c03060dda..4cd6f4ec2b 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -1289,6 +1289,7 @@ on_unrecur_appointment (EPopup *ep, EPopupItem *pitem, void *data) comp = e_cal_component_new (); e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (event->comp_data->icalcomp)); + e_cal_component_set_recurid (comp, NULL); cal_comp_util_add_exdate (comp, event->comp_data->instance_start, e_calendar_view_get_timezone (cal_view)); e_cal_component_commit_sequence (comp); @@ -1300,6 +1301,7 @@ on_unrecur_appointment (EPopup *ep, EPopupItem *pitem, void *data) new_uid = e_cal_component_gen_uid (); e_cal_component_set_uid (new_comp, new_uid); g_free (new_uid); + e_cal_component_set_recurid (new_comp, NULL); e_cal_component_set_rdate_list (new_comp, NULL); e_cal_component_set_rrule_list (new_comp, NULL); e_cal_component_set_exdate_list (new_comp, NULL); @@ -1319,7 +1321,7 @@ on_unrecur_appointment (EPopup *ep, EPopupItem *pitem, void *data) /* Now update both ECalComponents. Note that we do this last since at * present the updates happen synchronously so our event may disappear. */ - if (!e_cal_modify_object (client, e_cal_component_get_icalcomponent (comp), CALOBJ_MOD_THIS, NULL)) + if (!e_cal_modify_object (client, e_cal_component_get_icalcomponent (comp), CALOBJ_MOD_ALL, NULL)) g_message ("on_unrecur_appointment(): Could not update the object!"); g_object_unref (comp); |