diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-25 11:12:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-25 20:41:55 +0800 |
commit | bd5c704df902461748d07df496897669fc626e45 (patch) | |
tree | 2d3933c508e8d663233e1b56d232f085769dba6d /calendar/gui/e-week-view.c | |
parent | e741ec3076ef6776611f8dc3f125011f9da62256 (diff) | |
download | gsoc2013-evolution-bd5c704df902461748d07df496897669fc626e45.tar.gz gsoc2013-evolution-bd5c704df902461748d07df496897669fc626e45.tar.zst gsoc2013-evolution-bd5c704df902461748d07df496897669fc626e45.zip |
Remove a couple silly ECalModel functions.
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index a85ed63b82..2c44d26458 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2165,7 +2165,7 @@ e_week_view_remove_event_cb (EWeekView *week_view, if (week_view->popup_event_num == event_num) week_view->popup_event_num = -1; - e_cal_model_free_component_data (event->comp_data); + g_object_unref (event->comp_data); event->comp_data = NULL; if (week_view->spans) { @@ -2603,7 +2603,7 @@ e_week_view_free_events (EWeekView *week_view) for (event_num = 0; event_num < week_view->events->len; event_num++) { event = &g_array_index (week_view->events, EWeekViewEvent, event_num); - e_cal_model_free_component_data (event->comp_data); + g_object_unref (event->comp_data); } g_array_set_size (week_view->events, 0); @@ -2672,7 +2672,7 @@ e_week_view_add_event (ECalComponent *comp, e_calendar_view_get_timezone (E_CALENDAR_VIEW (add_event_data->week_view))); if (add_event_data->comp_data) { - event.comp_data = e_cal_model_copy_component_data (add_event_data->comp_data); + event.comp_data = g_object_ref (add_event_data->comp_data); } else { event.comp_data = g_object_new (E_TYPE_CAL_MODEL_COMPONENT, NULL); |