From cd886e9f07edcdd81eec56bcb7283b923eb37786 Mon Sep 17 00:00:00 2001 From: znek Date: Sat, 18 Dec 2004 14:48:36 +0000 Subject: [PATCH] removed workaround due to recent bugfix in NGObjWeb git-svn-id: http://svn.opengroupware.org/SOGo/trunk@480 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/Scheduler/ChangeLog | 5 ++++ SOGo/UI/Scheduler/UIxCalScheduleOverview.m | 24 +++----------------- SOGo/UI/Scheduler/UIxCalScheduleOverview.wox | 6 ++--- SOGo/UI/Scheduler/Version | 3 ++- 4 files changed, 12 insertions(+), 26 deletions(-) diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index 5e15dc34..afc2a823 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,3 +1,8 @@ +2004-12-18 Marcus Mueller + + * UIxCalScheduleOverview.[wox,m]: removed workaround for NGObjWeb bug, + code cleanup (v0.9.105) + 2004-12-17 Marcus Mueller * v0.9.104 diff --git a/SOGo/UI/Scheduler/UIxCalScheduleOverview.m b/SOGo/UI/Scheduler/UIxCalScheduleOverview.m index 06cd0b6d..5c0b9ed3 100644 --- a/SOGo/UI/Scheduler/UIxCalScheduleOverview.m +++ b/SOGo/UI/Scheduler/UIxCalScheduleOverview.m @@ -85,14 +85,12 @@ self->partNames = [[ps componentsSeparatedByString:@"\n"] retain]; ps = [self->item valueForKey:@"partstates"]; self->partStates = [[ps componentsSeparatedByString:@"\n"] retain]; - NSLog(@"new item:%@", self->item); } - (id)item { return self->item; } - (void)setParticipantIndex:(unsigned)_participantIndex { - NSLog(@"_participantIndex:%d", _participantIndex); self->participantIndex = _participantIndex; } - (unsigned)participantIndex { @@ -115,31 +113,15 @@ } - (NSString *)participant { - [self logWithFormat:@"participant(%d):%@", - self->participantIndex, - [self->partNames objectAtIndex:self->participantIndex]]; return [self->partNames objectAtIndex:self->participantIndex]; } - (NSString *)participationStatus { - [self logWithFormat:@"state(%d):%@", - self->participantIndex, - [self->partStates objectAtIndex:self->participantIndex]]; return [self->partStates objectAtIndex:self->participantIndex]; } - (unsigned)maxRenderedParticipantsCount { - return 2; -} - -// TODO: find the bug in WORepetition and get rid of this! -- (NSArray *)renderedParticipants { - NSRange r; - - r = NSMakeRange(0, [self renderedParticipantsCount]); - return [self->partNames subarrayWithRange:r]; -} -- (void)setFoo:(id)_foo { + return 3; } - (unsigned)renderedParticipantsCount { @@ -153,8 +135,8 @@ } - (BOOL)didTruncateParticipants { - return [self participantsCount] > [self maxRenderedParticipantsCount] ? YES - : NO; + return [self participantsCount] > + ([self maxRenderedParticipantsCount] + 1) ? YES : NO; } diff --git a/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox b/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox index 57d93c6c..586c0f16 100644 --- a/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox +++ b/SOGo/UI/Scheduler/UIxCalScheduleOverview.wox @@ -94,9 +94,8 @@ cellspacing="0" class="schedoverview" > - @@ -168,9 +167,8 @@ cellspacing="2" class="schedoverview" > - diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 07748cc2..13b2c93d 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,7 +1,8 @@ # $Id$ -SUBMINOR_VERSION:=104 +SUBMINOR_VERSION:=105 +# v0.9.105 requires NGObjWeb v4.5.102 # v0.9.101 requires NGiCal v4.5.36 # v0.9.100 requires SOGoUI v0.9.21 # v0.9.99 requires SOGoUI v0.9.20 -- 2.39.5