X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fsummary.c;h=6f03c42d8471de47b0e86bcbc427a83218a90ba9;hp=2f272e79e8d51bb89d2aa7323cda21fabaf8a465;hb=3d6fea2eca29405b8a90d91ee862e5a30aebdd3b;hpb=68b90ad48010aa46265549f3ddd4534d7826184f diff --git a/webcit/summary.c b/webcit/summary.c index 2f272e79e..6f03c42d8 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -77,10 +77,15 @@ void new_messages_section(void) { */ void tasks_section(void) { int num_msgs = 0; - int i; + HashPos *at; + const char *HashKey; + long HKLen; + void *vMsg; + message_summary *Msg; + struct wcsession *WCC = WC; gotoroom("_TASKS_"); - if (WC->wc_view != VIEW_TASKS) { + if (WCC->wc_view != VIEW_TASKS) { num_msgs = 0; } else { @@ -93,8 +98,10 @@ void tasks_section(void) { wprintf("
\n"); } else { - for (i=0; imsgarr[i], 0); + at = GetNewHashPos(); + while (GetNextHashPos(WCC->summ, at, &HKLen, &HashKey, &vMsg)) { + Msg = (message_summary*) vMsg; + display_task(Msg, 0); } } @@ -107,7 +114,12 @@ void tasks_section(void) { */ void calendar_section(void) { int num_msgs = 0; - int i; + HashPos *at; + const char *HashKey; + long HKLen; + void *vMsg; + message_summary *Msg; + struct wcsession *WCC = WC; struct calview c; gotoroom("_CALENDAR_"); @@ -126,8 +138,10 @@ void calendar_section(void) { wprintf("
\n"); } else { - for (i=0; imsgarr[i], 0, &c); + at = GetNewHashPos(); + while (GetNextHashPos(WCC->summ, at, &HKLen, &HashKey, &vMsg)) { + Msg = (message_summary*) vMsg; + load_calendar_item(Msg, 0, &c); } calendar_summary_view(); }