aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2002-08-14 21:13:33 +0800
committerIain Holmes <iain@src.gnome.org>2002-08-14 21:13:33 +0800
commit89aa08c07bebf3e3b901b5e27735ad72f35154d8 (patch)
treee2c0a17ff717739c49b4631728dd65a0a9646690 /my-evolution
parentf14d2e67bbae5ffa09fc8140bda8c47191a6ceb8 (diff)
downloadgsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.tar
gsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.tar.gz
gsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.tar.bz2
gsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.tar.lz
gsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.tar.xz
gsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.tar.zst
gsoc2013-evolution-89aa08c07bebf3e3b901b5e27735ad72f35154d8.zip
Sort tasks in the correct order
svn path=/trunk/; revision=17774
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog4
-rw-r--r--my-evolution/e-summary-tasks.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index e17d9dc368..036dbefe41 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,5 +1,9 @@
2002-08-14 Iain <iain@ximian.com>
+ * e-summary-tasks.c (sort_uids): Sort the tasks in the correct order.
+
+2002-08-14 Iain <iain@ximian.com>
+
* e-summary-tasks.c (get_task_colour): Return the stored task colour.
(e_summary_tasks_init): Get the colour for overdue and todays tasks
from the wombat.
diff --git a/my-evolution/e-summary-tasks.c b/my-evolution/e-summary-tasks.c
index 126935c022..b704ce1cf9 100644
--- a/my-evolution/e-summary-tasks.c
+++ b/my-evolution/e-summary-tasks.c
@@ -164,6 +164,14 @@ sort_uids (gconstpointer a,
if (pri_b == NULL)
pri_b = &lowest;
+ if (*pri_a == 0) {
+ *pri_a = lowest;
+ }
+
+ if (*pri_b == 0) {
+ *pri_b = lowest;
+ }
+
rv = *pri_a - *pri_b;
if (pri_a != &lowest)