[evolution-patches] patch for disabling modifications of individual instances



We have found too many broken cases in the recurrences work, so this
patch disables the modifications to individual instances until we fix
all the issues.
-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2681
diff -u -p -r1.2681 ChangeLog
--- ChangeLog	4 Mar 2005 14:39:12 -0000	1.2681
+++ ChangeLog	6 Mar 2005 05:52:36 -0000
@@ -1,3 +1,8 @@
+2005-03-06  Rodrigo Moya <rodrigo novell com>
+
+	* gui/dialogs/recur-comp.c (recur_component_dialog): disable dialog for
+	asking user which instance(s) to modify.
+
 2005-03-04  Rodrigo Moya <rodrigo novell com>
 
 	Fixes #72835
Index: gui/dialogs/recur-comp.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/recur-comp.c,v
retrieving revision 1.13
diff -u -p -r1.13 recur-comp.c
--- gui/dialogs/recur-comp.c	21 Dec 2004 16:52:00 -0000	1.13
+++ gui/dialogs/recur-comp.c	6 Mar 2005 05:52:36 -0000
@@ -36,6 +36,7 @@ recur_component_dialog (ECal *client,
 			CalObjModType *mod,
 			GtkWindow *parent)
 {
+#if 0
 	char *str;
 	GtkWidget *dialog, *rb_this, *rb_prior, *rb_future, *rb_all, *hbox;
 	GtkWidget *placeholder, *vbox;
@@ -133,4 +134,16 @@ recur_component_dialog (ECal *client,
 	gtk_widget_destroy (dialog);
 
 	return ret;
+#endif
+
+	icalproperty *prop;
+
+	prop = icalcomponent_get_first_property (e_cal_component_get_icalcomponent (comp),
+						 ICAL_RECURRENCEID_PROPERTY);
+	if (prop)
+		icalcomponent_remove_property (e_cal_component_get_icalcomponent (comp), prop);
+
+	*mod = CALOBJ_MOD_ALL;
+
+	return TRUE;
 }


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