Re: [evolution-patches] Patch for #29032



Sorry, the first patch wasn't good - it could leave the UI in an
inconsistent state (100% or 0% complete but in progress). Here's a new
patch.

--
Hans Petter
? evolution-calendar-itip-crash.patch
? evolution-calendar-itip-destroy-chain.patch
? evolution-calendar-task-progress.patch
? log
? gui/dispose
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.1862
diff -u -p -r1.1862 ChangeLog
--- ChangeLog	27 Aug 2003 03:37:22 -0000	1.1862
+++ ChangeLog	27 Aug 2003 21:32:10 -0000
@@ -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.
Index: gui/dialogs/task-details-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/task-details-page.c,v
retrieving revision 1.33
diff -u -p -r1.33 task-details-page.c
--- gui/dialogs/task-details-page.c	13 Jul 2003 19:29:41 -0000	1.33
+++ gui/dialogs/task-details-page.c	27 Aug 2003 21:32:10 -0000
@@ -594,7 +594,10 @@ status_changed (GtkMenu	*menu, TaskDetai
 		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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]