[evolution-patches] Evolution - itip-control - Allow backends to handle declines



hi,
 Currently, the itip-control code handles the decline request by
removing the component from the ecal. As a result, the backend does not
get the chance to handle this event, as it would like to. This patch
uses the update_item call instead, allowing the respective backend to
handle the event (the notification is done by the receive_objects call).

Also, added check for the save_schedules capability and suppress rsvp
mailing if the backend can handle it by itself.

harish

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2470
diff -u -p -r1.2470 ChangeLog
--- ChangeLog	2 Aug 2004 07:33:37 -0000	1.2470
+++ ChangeLog	2 Aug 2004 13:38:37 -0000
@@ -1,3 +1,10 @@
+2004-08-02  Harish Krishnaswamy  <kharish novell com>
+
+	* gui/e-itip-control.c: (ok_clicked_cb): Handle decline request by
+	using update_item rather than remove_item, so the backend receives
+	the notification and can handle it. Also, do not rsvp if the backend
+	has the 'save_schedule' capability.
+
 2004-07-30  Rodrigo Moya <rodrigo novell com>
 
 	Fixes #57622
Index: gui/e-itip-control.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-itip-control.c,v
retrieving revision 1.155
diff -u -p -r1.155 e-itip-control.c
--- gui/e-itip-control.c	26 Jul 2004 12:07:04 -0000	1.155
+++ gui/e-itip-control.c	2 Aug 2004 13:38:37 -0000
@@ -2125,7 +2125,7 @@ ok_clicked_cb (GtkHTML *html, const gcha
 							ICAL_PARTSTAT_DECLINED);
 				if (status) {
 					e_cal_component_rescan (priv->comp);
-					remove_item (itip);
+					update_item (itip);
 				}
 				break;
 			case 'F':
@@ -2151,6 +2151,8 @@ ok_clicked_cb (GtkHTML *html, const gcha
 
 	}
 	g_strfreev (fields);
+	if (e_cal_get_save_schedules (priv->current_ecal))
+		return;
 
 	if (rsvp && status) {
 		ECalComponent *comp = NULL;





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