aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r--calendar/gui/e-calendar-table.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index 17f957623f..ab1578508e 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -35,7 +35,7 @@
#include <e-table/e-cell-text.h>
#include "e-calendar-table.h"
#include "calendar-model.h"
-#include "gncal-todo.h"
+#include "dialogs/task-editor.h"
/* Pixmaps. */
#include "task.xpm"
@@ -415,16 +415,14 @@ static void
e_calendar_table_open_task (ECalendarTable *cal_table,
gint row)
{
+ TaskEditor *tedit;
CalComponent *comp;
-#if 0
- task_editor_new ();
- /* FIXME: Set iCalObject to edit. */
-#endif
+ tedit = task_editor_new ();
+ task_editor_set_cal_client (tedit, calendar_model_get_cal_client (cal_table->model));
comp = calendar_model_get_cal_object (cal_table->model, row);
-
- gncal_todo_edit (calendar_model_get_cal_client (cal_table->model), comp);
+ task_editor_set_todo_object (tedit, comp);
}