[evolution-patches] Assigned Tasks Patch



Makes sure that we handle tasks when they come in as tasks, rather than
events.

-JP
-- 
JP Rosevear <jpr novell com>
Novell, Inc.
? evolution-backup.tar.gz
? fb.patch
? recur-string.patch
? task-itip.patch
? temp.patch
? temp2.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/ChangeLog,v
retrieving revision 1.39
diff -u -r1.39 ChangeLog
--- ChangeLog	25 Feb 2005 15:54:21 -0000	1.39
+++ ChangeLog	11 Mar 2005 14:21:16 -0000
@@ -1,3 +1,8 @@
+2005-03-11  JP Rosevear  <jpr novell com>
+
+	* itip-formatter.c (extract_itip_data): set the type appropriately
+	so that assigned tasks can be handled
+
 2005-02-24  Bj�Torkelsson  <torkel acc umu se>
 
 	* org-gnome-itip-formatter.eplug.in: Added author and description.
Index: itip-formatter.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/itip-formatter.c,v
retrieving revision 1.38
diff -u -r1.38 itip-formatter.c
--- itip-formatter.c	2 Feb 2005 09:08:14 -0000	1.38
+++ itip-formatter.c	11 Mar 2005 14:21:16 -0000
@@ -1010,6 +1010,20 @@
 
 		return FALSE;	       
 	}
+
+	switch (kind) {
+	case ICAL_VEVENT_COMPONENT:
+		pitip->type = E_CAL_SOURCE_TYPE_EVENT;
+		break;
+	case ICAL_VTODO_COMPONENT:
+		pitip->type = E_CAL_SOURCE_TYPE_TODO;
+		break;
+	default:
+		set_itip_error (pitip, container, 
+				_("The item in the calendar is not valid"), 
+				_("The message does contain a calendar, but the calendar contains no events, tasks or free/busy information"));
+		return FALSE;
+	}
 	
 	pitip->total = icalcomponent_count_components (pitip->main_comp, ICAL_VEVENT_COMPONENT);
 	pitip->total += icalcomponent_count_components (pitip->main_comp, ICAL_VTODO_COMPONENT);


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