aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-08-28 22:31:50 +0800
committerHans Petter <hansp@src.gnome.org>2003-08-28 22:31:50 +0800
commit405d1070bf2ef5295cb8925479ad4d256a7ac0ac (patch)
treeecc7bb7769871ca520319839eb9236569a0d31a3 /calendar
parent15c8a15ba18cb2c994acf97464d528fb536c41bf (diff)
downloadgsoc2013-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')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/task-details-page.c5
2 files changed, 12 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 72dbd06e17..bda07d2c3d 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+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%.
+
2003-08-27 Bolian Yin <bolian.yin@sun.com>
* gui/Makefile.am use libevolution-calendar-a11y instead of libevolution-a11y.
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) {