diff options
author | Milan Crha <mcrha@redhat.com> | 2009-04-27 18:07:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-04-28 20:06:00 +0800 |
commit | 06a883940fcd97c5324fc2cdf3b3ffc50772208e (patch) | |
tree | 12867ebca018c136de40a4d8f08bbc2afc33d320 /calendar/gui/print.c | |
parent | e887df9a554e452c7c1bb2bae3739cb43ddf73bc (diff) | |
download | gsoc2013-evolution-06a883940fcd97c5324fc2cdf3b3ffc50772208e.tar.gz gsoc2013-evolution-06a883940fcd97c5324fc2cdf3b3ffc50772208e.tar.zst gsoc2013-evolution-06a883940fcd97c5324fc2cdf3b3ffc50772208e.zip |
Allow Last Modified and Created columns for event table
** Fix for bug #575773
* gui/e-calendar-table.etspec:
* gui/e-cal-list-view.etspec:
* gui/e-memo-table.etspec:
* gui/e-cal-model.h: (ECalModelField), (struct _ECalModelComponent):
* gui/e-cal-model.c: (get_datetime_from_utc), (ecm_value_at),
(ecm_duplicate_value), (ecm_free_value), (ecm_initialize_value),
(ecm_value_is_empty), (ecm_value_to_string),
(e_cal_view_objects_modified_cb), (e_cal_model_component_finalize),
(e_cal_model_component_init):
Allow showing CREATED and LAST-MODIFIED properties in a table.
* gui/print.c: (print_comp_draw_real):
* gui/e-cal-component-preview.c: (write_html):
* conduits/todo/todo-conduit.c: (local_record_from_comp):
Possible leak fix.
Diffstat (limited to 'calendar/gui/print.c')
-rw-r--r-- | calendar/gui/print.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c index c4f42fe4bd..52320eff25 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -2594,7 +2594,6 @@ print_comp_draw_real (GtkPrintOperation *operation, char *priority_string, *pri_text; priority_string = e_cal_util_priority_to_string (*priority); - e_cal_component_free_priority (priority); pri_text = g_strdup_printf (_("Priority: %s"), priority_string); top = bound_text (context, font, pri_text, -1, @@ -2603,6 +2602,9 @@ print_comp_draw_real (GtkPrintOperation *operation, g_free (pri_text); } + if (priority) + e_cal_component_free_priority (priority); + /* Percent Complete */ e_cal_component_get_percent (comp, &percent); if (percent) { |