From 252a533ed71e04dee7d44d03997a49c96e4cf21b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 6 Jan 2003 18:01:35 +0000 Subject: [PATCH] * Begin handling of TRANSP property to show event times as free or busy (not finished). --- webcit/ChangeLog | 5 +++++ webcit/event.c | 25 ++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 2c50a03d5..ded8bde69 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 400.79 2003/01/06 18:01:35 ajc +* Begin handling of TRANSP property to show event times as free or + busy (not finished). + Revision 400.78 2003/01/05 21:02:14 ajc * Summary page: three columns are now all the same width @@ -1223,3 +1227,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/event.c b/webcit/event.c index 45d1e2932..7c1b38431 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -250,6 +250,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) } } } + wprintf("Organizer"); escputs(organizer_string); if (organizer_is_me) { @@ -269,7 +270,29 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) wprintf("\n"); - /* Attendees (do more with this later) */ + /* Transparency */ + wprintf("Show time as:"); + + p = icalcomponent_get_first_property(vevent, ICAL_TRANSP_PROPERTY); + if (p == NULL) { + /* No transparency found. Default to opaque (busy). */ + p = icalproperty_new_transp(ICAL_TRANSP_OPAQUE); + if (p != NULL) { + icalcomponent_add_property(vevent, p); + } + } + + wprintf("Free  "); + + wprintf("Busy"); + + wprintf("\n"); + + /* Attendees */ wprintf("Attendes
" "(Separate multiple attendees with commas)" "" -- 2.39.2