diff options
author | Iain Holmes <iain@src.gnome.org> | 2002-01-17 01:56:22 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2002-01-17 01:56:22 +0800 |
commit | 82cb9e15be22f43794345c93cbbef1bf0da06158 (patch) | |
tree | db2d4f6d5bde131dcadbe7ee4c6a3c03a3b661db /my-evolution/e-summary-tasks.c | |
parent | 95de7c6dc800504a12b6fc7557e282e646250422 (diff) | |
download | gsoc2013-evolution-82cb9e15be22f43794345c93cbbef1bf0da06158.tar.gz gsoc2013-evolution-82cb9e15be22f43794345c93cbbef1bf0da06158.tar.zst gsoc2013-evolution-82cb9e15be22f43794345c93cbbef1bf0da06158.zip |
Use soup to transfer HTTP files and other bugs fixed
svn path=/trunk/; revision=15344
Diffstat (limited to 'my-evolution/e-summary-tasks.c')
-rw-r--r-- | my-evolution/e-summary-tasks.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/my-evolution/e-summary-tasks.c b/my-evolution/e-summary-tasks.c index a8c32b1db7..6bcc65d2b7 100644 --- a/my-evolution/e-summary-tasks.c +++ b/my-evolution/e-summary-tasks.c @@ -136,8 +136,8 @@ sort_uids (gconstpointer a, CalComponent *comp_a, *comp_b; CalClient *client = user_data; CalClientGetStatus status; - CalComponentDateTime start_a, start_b; - int retval; + int real_a = 0, real_b = 0; + int *pri_a, *pri_b; /* a after b then return > 0 */ @@ -149,20 +149,13 @@ sort_uids (gconstpointer a, if (status != CAL_CLIENT_GET_SUCCESS) return 1; - cal_component_get_dtstart (comp_a, &start_a); - cal_component_get_dtstart (comp_b, &start_b); + pri_a = &real_a; + pri_b = &real_b; - if (start_a.value == NULL || start_b.value == NULL) { - /* Try to do something reasonable if one or more of our .values is NULL */ - retval = (start_a.value ? 1 : 0) - (start_b.value ? 1 : 0); - } else { - retval = icaltime_compare (*start_a.value, *start_b.value); - } - - cal_component_free_datetime (&start_a); - cal_component_free_datetime (&start_b); + cal_component_get_priority (comp_a, &pri_a); + cal_component_get_priority (comp_b, &pri_b); - return retval; + return *pri_a - *pri_b; } static GList * @@ -258,6 +251,7 @@ generate_html (gpointer data) } else { char *s; + uids = cal_list_sort (uids, sort_uids, tasks->client); string = g_string_new ("<dl><dt><img src=\"myevo-post-it.png\" align=\"middle\" " "alt=\"\" width=\"48\" height=\"48\"> <b><a href=\"evolution:/local/Tasks\">"); s = e_utf8_from_locale_string (_("Tasks")); |