From d16418158d22a039e2a9a9665a5b337aed5f510a Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sun, 28 Oct 2001 22:13:13 +0000 Subject: get the tasks directly from the CalendarModel, so we get the filtering & 2001-10-28 Damon Chaplin * gui/print.c (print_todo_details): get the tasks directly from the CalendarModel, so we get the filtering & sorting for free. Fixes bug #10280. Hmm. This seems too easy. It isn't going to work is it... * gui/gnome-cal.c (gnome_calendar_get_task_pad): new function to get the TaskPad ECalendarTable, for printing. * gui/calendar-model.c: * gui/calendar-config.c (calendar_config_get_hide_completed_tasks_sexp): split this out from calendar-model.c so we could use it for printing, but ended up doing that a different way. * gui/dialogs/task-page.c (init_widgets): removed a duplicated signal connected to field_changed_cb(). svn path=/trunk/; revision=14302 --- calendar/gui/gnome-cal.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'calendar/gui/gnome-cal.c') diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 12ec9609c7..4ce38ab750 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -42,7 +42,6 @@ #include "widgets/menus/gal-view-menus.h" #include "dialogs/event-editor.h" #include "dialogs/task-editor.h" -#include "e-calendar-table.h" #include "e-day-view.h" #include "e-week-view.h" #include "evolution-calendar.h" @@ -2600,3 +2599,11 @@ gnome_calendar_delete_event (GnomeCalendar *gcal) } +ECalendarTable* +gnome_calendar_get_task_pad (GnomeCalendar *gcal) +{ + g_return_val_if_fail (GNOME_IS_CALENDAR (gcal), NULL); + + return E_CALENDAR_TABLE (gcal->priv->todo); +} + -- cgit