diff options
author | JP Rosevear <jpr@src.gnome.org> | 2003-03-05 03:52:37 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-03-05 03:52:37 +0800 |
commit | 6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62 (patch) | |
tree | bba07b5f28966c10a90de8f550af895014b0b9bb /calendar/gui/dialogs/task-details-page.c | |
parent | cd4477930e72b1be069d5c97b90d96e989645bfc (diff) | |
download | gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.gz gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.tar.zst gsoc2013-evolution-6b4c3984d52cfbf88ae84ee0102f4aa0c17a2a62.zip |
If only the pipe wouldn't break.
svn path=/trunk/; revision=20143
Diffstat (limited to 'calendar/gui/dialogs/task-details-page.c')
-rw-r--r-- | calendar/gui/dialogs/task-details-page.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 9dfea0dd05..629443dba2 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -64,7 +64,6 @@ struct _TaskDetailsPagePrivate { static const int status_map[] = { ICAL_STATUS_NONE, ICAL_STATUS_INPROCESS, - ICAL_STATUS_NEEDSACTION, ICAL_STATUS_COMPLETED, ICAL_STATUS_CANCELLED, -1 @@ -301,7 +300,7 @@ task_details_page_fill_widgets (CompEditorPage *page, CalComponent *comp) /* Status. */ cal_component_get_status (comp, &status); - if (status == ICAL_STATUS_NONE) { + if (status == ICAL_STATUS_NONE || status == ICAL_STATUS_NEEDSACTION) { /* Try to use the percent value. */ if (percent) { if (*percent == 100) @@ -541,7 +540,7 @@ date_changed_cb (EDateEdit *dedit, gpointer data) completed_tt = icaltime_null_time (); if (status == ICAL_STATUS_COMPLETED) { e_dialog_option_menu_set (priv->status, - ICAL_STATUS_NEEDSACTION, + ICAL_STATUS_NONE, status_map); e_dialog_spin_set (priv->percent_complete, 0); } @@ -580,9 +579,6 @@ status_changed (GtkMenu *menu, TaskDetailsPage *tdpage) e_dialog_spin_set (priv->percent_complete, 0); e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), ctime); complete_date_changed (tdpage, 0, FALSE); - } else if (status == ICAL_STATUS_NEEDSACTION) { - e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), ctime); - complete_date_changed (tdpage, 0, FALSE); } else if (status == ICAL_STATUS_INPROCESS) { e_dialog_spin_set (priv->percent_complete, 50); e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), ctime); |