[evolution-patches] Low vs unspecified task priority sorting



Changing the priority of a task from "unspecified" to "Low" should not
make the task move up in priority. Patch makes the default
"unspecified" level fall between "Low" and "Normal".
Index: calendar/gui/e-calendar-table.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-table.c,v
retrieving revision 1.138
diff -u -r1.138 e-calendar-table.c
--- calendar/gui/e-calendar-table.c	5 Aug 2005 12:15:33 -0000	1.138
+++ calendar/gui/e-calendar-table.c	15 Aug 2005 21:09:24 -0000
@@ -261,11 +261,11 @@
 	priority1 = e_cal_util_priority_from_string ((const char*) a);
 	priority2 = e_cal_util_priority_from_string ((const char*) b);
 
-	/* We change undefined priorities so they appear after 'Low'. */
+	/* We change undefined priorities so they appear between 'Low' and 'Normal'. */
 	if (priority1 <= 0)
-		priority1 = 10;
+		priority1 = 6;
 	if (priority2 <= 0)
-		priority2 = 10;
+		priority2 = 6;
 
 	/* We'll just use the ordering of the priority values. */
 	if (priority1 < priority2)


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