* ugly icon (won't be ugly with background)
authorArt Cancro <ajc@citadel.org>
Sun, 29 Sep 2002 21:36:47 +0000 (21:36 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 29 Sep 2002 21:36:47 +0000 (21:36 +0000)
webcit/calendar.c
webcit/event.c
webcit/static/vcalendar.gif [new file with mode: 0644]

index 28304384266a574b9c6cd1b1e16101081d970589..a18d6b908b93b6235cd9625b49423d31418bcf3c 100644 (file)
@@ -67,144 +67,22 @@ void display_task(long msgnum) {
 
 
 
-/*
- * Process a single calendar component.
- * It won't be a compound component at this point because those have
- * already been broken down by cal_process_object().
- */
-void cal_process_subcomponent(icalcomponent *cal) {
-       wprintf("cal_process_subcomponent() called<BR>\n");
-       wprintf("cal_process_subcomponent() exiting<BR>\n");
-}
-
-
-
-
-
 /*
  * Process a calendar object
  * ...at this point it's already been deserialized by cal_process_attachment()
  */
 void cal_process_object(icalcomponent *cal) {
        icalcomponent *c;
-       int num_subcomponents = 0;
-
-       wprintf("cal_process_object() called<BR>\n");
 
        /* Iterate through all subcomponents */
        wprintf("Iterating through all sub-components<BR>\n");
        for (c = icalcomponent_get_first_component(cal, ICAL_ANY_COMPONENT);
            (c != 0);
            c = icalcomponent_get_next_component(cal, ICAL_ANY_COMPONENT)) {
-               cal_process_subcomponent(c);
-               ++num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VEVENTs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VEVENT_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VEVENT_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VTODOs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VTODO_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VTODO_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VJOURNALs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VJOURNAL_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VJOURNAL_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VCALENDARs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VCALENDAR_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VCALENDAR_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VFREEBUSYs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VFREEBUSY_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VFREEBUSY_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VALARMs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VALARM_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VALARM_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VTIMEZONEs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VTIMEZONE_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VTIMEZONE_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VSCHEDULEs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VSCHEDULE_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VSCHEDULE_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VQUERYs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VQUERY_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VQUERY_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VCARs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VCAR_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VCAR_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       /* Iterate through all subcomponents */
-       wprintf("Iterating through VCOMMANDs<BR>\n");
-       for (c = icalcomponent_get_first_component(cal, ICAL_VCOMMAND_COMPONENT);
-           (c != 0);
-           c = icalcomponent_get_next_component(cal, ICAL_VCOMMAND_COMPONENT)) {
-               cal_process_subcomponent(c);
-               --num_subcomponents;
-       }
-
-       if (num_subcomponents != 0) {
-               wprintf("Warning: %d subcomponents unhandled<BR>\n",
-                       num_subcomponents);
+               /* Recursively process subcomponent */
+               cal_process_object(c);
        }
 
-       wprintf("cal_process_object() exiting<BR>\n");
 }
 
 
index 1411b5e7cb5913bd2e91123e990e88a664d94c39..b21ac75cd7e26db87d40528c7e8330a315ab3412 100644 (file)
@@ -53,6 +53,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
 
        output_headers(3);
        wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>"
+               "<IMG VALIGN=CENTER SRC=\"/static/vcalendar.gif\">"
                "<FONT SIZE=+1 COLOR=\"FFFFFF\""
                "<B>Edit event</B>"
                "</FONT></TD></TR></TABLE><BR>\n"
diff --git a/webcit/static/vcalendar.gif b/webcit/static/vcalendar.gif
new file mode 100644 (file)
index 0000000..5fd6521
Binary files /dev/null and b/webcit/static/vcalendar.gif differ