diff options
author | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-08-08 22:58:02 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-08-08 22:58:02 +0800 |
commit | fa0a110592ab3feda8051417d5dd198e96308367 (patch) | |
tree | 30611ac69b73e59a48b89acd0d40c154ef303ece /calendar/gui/print.c | |
parent | dc84df9871b3171a21d62feec988160f3c608103 (diff) | |
download | gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.gz gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.tar.zst gsoc2013-evolution-fa0a110592ab3feda8051417d5dd198e96308367.zip |
Merged ECalendarTable changes from new-calendar-branch
svn path=/trunk/; revision=22143
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r-- | calendar/gui/print.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c index aaf12f548a..f338bc2e36 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -1771,7 +1771,7 @@ print_todo_details (GnomePrintContext *pc, GnomeCalendar *gcal, struct icaltimetype *tt; ECalendarTable *task_pad; ETable *table; - CalendarModel *model; + ECalModel *model; gint rows, row; /* We get the tasks directly from the TaskPad ETable. This means we @@ -1794,17 +1794,24 @@ print_todo_details (GnomePrintContext *pc, GnomeCalendar *gcal, rows = e_table_model_row_count (E_TABLE_MODEL (model)); for (row = 0; row < rows; row++) { + ECalModelComponent *comp_data; CalComponent *comp; CalComponentText summary; int model_row; model_row = e_table_view_to_model_row (table, row); - comp = calendar_model_get_component (model, model_row); + comp_data = e_cal_model_get_component_at (model, model_row); + if (!comp_data) + continue; - cal_component_get_summary (comp, &summary); + comp = cal_component_new (); + cal_component_set_icalcomponent (comp, icalcomponent_new_clone (comp_data->icalcomp)); - if (!summary.value) + cal_component_get_summary (comp_data->icalcomp, &summary); + if (!summary.value) { + g_object_unref (comp); continue; + } x = left; xend = right - 2; @@ -1835,6 +1842,8 @@ print_todo_details (GnomePrintContext *pc, GnomeCalendar *gcal, gnome_print_lineto (pc, xend, y); gnome_print_stroke (pc); y -= 3; + + g_object_unref (comp); } g_object_unref (font_summary); |