* All OS-level includes are now included from webcit.h instead of from
[citadel.git] / webcit / summary.c
index a9cddadf9b35dbf56a7fb794ac9eae06d46c8c96..ed5bb61e81b7aacb3fe4f6a055c08a8cb59bb01f 100644 (file)
@@ -4,26 +4,6 @@
  * Displays the "Summary Page"
  */
 
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <sys/time.h>
-#include <limits.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <string.h>
-#include <time.h>
-#include <pwd.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <pthread.h>
-#include <signal.h>
 #include "webcit.h"
 
 /*
@@ -139,8 +119,8 @@ void tasks_section(void) {
        svprintf("BOXTITLE", WCS_STRING, "Tasks");
        do_template("beginbox");
 #ifdef WEBCIT_WITH_CALENDAR_SERVICE
-       gotoroom("Tasks");
-       if (strcasecmp(WC->wc_roomname, "Tasks")) {
+       gotoroom("_TASKS_");
+       if (WC->wc_view != VIEW_TASKS) {
                num_msgs = 0;
        }
        else {
@@ -177,8 +157,8 @@ void calendar_section(void) {
        svprintf("BOXTITLE", WCS_STRING, "Today&nbsp;on&nbsp;your&nbsp;calendar");
        do_template("beginbox");
 #ifdef WEBCIT_WITH_CALENDAR_SERVICE
-       gotoroom("Calendar");
-       if (strcasecmp(WC->wc_roomname, "Calendar")) {
+       gotoroom("_CALENDAR_");
+       if (WC->wc_view != VIEW_CALENDAR) {
                num_msgs = 0;
        }
        else {