[evolution-patches] Re: fix for the bug #309674 [calendar]



Sorry it is the fix for the bug #309679. Updated the ChangeLog.

thanks, chenthill.

On Wed, 2005-08-10 at 19:12 +0530, chen wrote:
> Hi,
>   Have attached the fix for the bug.
> 
> thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.492
diff -u -p -r1.492 ChangeLog
--- ChangeLog	9 Aug 2005 22:41:00 -0000	1.492
+++ ChangeLog	10 Aug 2005 13:28:23 -0000
@@ -1,3 +1,10 @@
+2005-08-10  Chenthill Palanisamy  <pchenthill novell com>
+
+	Fixes #309679
+	* backends/groupwise/e-cal-backend-groupwise-utils.c:
+	(e_gw_item_to_cal_component): Check the accept level and
+	set the tentative status if its accepted.
+
 2005-08-06  P. S. Chakravarthi	<pchakravarthi novell com>
 
 	Fixes #309499
Index: backends/groupwise/e-cal-backend-groupwise-utils.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c,v
retrieving revision 1.62
diff -u -p -r1.62 e-cal-backend-groupwise-utils.c
--- backends/groupwise/e-cal-backend-groupwise-utils.c	9 Aug 2005 22:41:01 -0000	1.62
+++ backends/groupwise/e-cal-backend-groupwise-utils.c	10 Aug 2005 13:28:24 -0000
@@ -1022,9 +1022,13 @@ e_gw_item_to_cal_component (EGwItem *ite
 			 * for getting cutype and the status */
 			attendee->cutype = ICAL_CUTYPE_INDIVIDUAL;
 			 
-			if (recipient->status == E_GW_ITEM_STAT_ACCEPTED)
-				attendee->status = ICAL_PARTSTAT_ACCEPTED;
-			else if (recipient->status == E_GW_ITEM_STAT_DECLINED)
+			if (recipient->status == E_GW_ITEM_STAT_ACCEPTED) {
+				const char *ac_level = e_gw_item_get_accept_level (item);
+				if (ac_level && strcmp (e_gw_item_get_accept_level (item), "Tentative"))
+					attendee->status = ICAL_PARTSTAT_ACCEPTED;
+				else
+					attendee->status = ICAL_PARTSTAT_TENTATIVE;
+			} else if (recipient->status == E_GW_ITEM_STAT_DECLINED)
 				attendee->status = ICAL_PARTSTAT_DECLINED;
 			else
 				attendee->status = ICAL_PARTSTAT_NEEDSACTION;	


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]