tasque r24 - in trunk: . src/Backends/IceCore



Author: btimothy
Date: Fri Mar 14 19:17:10 2008
New Revision: 24
URL: http://svn.gnome.org/viewvc/tasque?rev=24&view=rev

Log:
* src/Backends/IceCore/IceTask.cs: Make the task priorities match up
  with ICEcore so that 1=1, 2=2, 3=3, and None=5.

Modified:
   trunk/ChangeLog
   trunk/src/Backends/IceCore/IceTask.cs

Modified: trunk/src/Backends/IceCore/IceTask.cs
==============================================================================
--- trunk/src/Backends/IceCore/IceTask.cs	(original)
+++ trunk/src/Backends/IceCore/IceTask.cs	Fri Mar 14 19:17:10 2008
@@ -140,10 +140,10 @@
 				
 				switch (priorityString) {
 				case "1":
-				case "2":
 					return TaskPriority.High;
-				case "3":
+				case "2":
 					return TaskPriority.Medium;
+				case "3":
 				case "4":
 					return TaskPriority.Low;
 				}
@@ -153,13 +153,13 @@
 			set {
 				switch (value) {
 				case TaskPriority.High:
-					entry.Priority = "2";
+					entry.Priority = "1";
 					break;
 				case TaskPriority.Medium:
-					entry.Priority = "3";
+					entry.Priority = "2";
 					break;
 				case TaskPriority.Low:
-					entry.Priority = "4";
+					entry.Priority = "3";
 					break;
 				default:
 					entry.Priority = "5";



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