diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-08-28 22:31:50 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-08-28 22:31:50 +0800 |
commit | 405d1070bf2ef5295cb8925479ad4d256a7ac0ac (patch) | |
tree | ecc7bb7769871ca520319839eb9236569a0d31a3 /calendar/gui/dialogs | |
parent | 15c8a15ba18cb2c994acf97464d528fb536c41bf (diff) | |
download | gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.tar gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.tar.gz gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.tar.bz2 gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.tar.lz gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.tar.xz gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.tar.zst gsoc2013-evolution-405d1070bf2ef5295cb8925479ad4d256a7ac0ac.zip |
Fixes #29032.
2003-08-27 Hans Petter Jansson <hpj@ximian.com>
Fixes #29032.
* gui/dialogs/task-details-page.c (status_changed): When task status
is set to "In Progress", set percent complete to 50% only if it was
previously set to 0% or 100%.
svn path=/trunk/; revision=22395
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/task-details-page.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 717ee7987d..cdaa8d08a1 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -594,7 +594,10 @@ status_changed (GtkMenu *menu, TaskDetailsPage *tdpage) 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); + gint percent_complete = e_dialog_spin_get_int (priv->percent_complete); + if (percent_complete <= 0 || percent_complete >= 100) + e_dialog_spin_set (priv->percent_complete, 50); + e_date_edit_set_time (E_DATE_EDIT (priv->completed_date), ctime); complete_date_changed (tdpage, 0, FALSE); } else if (status == ICAL_STATUS_COMPLETED) { |