[evolution-patches] fix for the bug #301391 [calendar]



Hi,
  Have attached the fix for the bug. Please see the ChangeLog for more
information.

thanks, Chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2804
diff -u -p -r1.2804 ChangeLog
--- ChangeLog	19 Sep 2005 08:10:51 -0000	1.2804
+++ ChangeLog	28 Sep 2005 07:44:08 -0000
@@ -1,3 +1,11 @@
+2005-09-28  Chenthill Palanisamy  <pchenthill novell com>
+
+
+	* gui/e-calendar-view.c: (clipboard_get_text_cb):
+	Remove the X-EVOLUTION-ENDDATE property, so that
+	the copy/paste of recurrence event expands properly in 
+	the view.
+
 2005-09-08  P. S. Chakravarthi <pchakravarthi novell com>
 
 	Fix #261625
Index: gui/e-calendar-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-view.c,v
retrieving revision 1.91
diff -u -p -r1.91 e-calendar-view.c
--- gui/e-calendar-view.c	24 Aug 2005 03:07:49 -0000	1.91
+++ gui/e-calendar-view.c	28 Sep 2005 07:44:09 -0000
@@ -802,10 +802,17 @@ clipboard_get_text_cb (GtkClipboard *cli
 		subcomp = icalcomponent_get_first_component (icalcomp, ICAL_ANY_COMPONENT);
 		while (subcomp) {
 			child_kind = icalcomponent_isa (subcomp);
-			if (child_kind == ICAL_VEVENT_COMPONENT)
+			if (child_kind == ICAL_VEVENT_COMPONENT) {
+
+				if (e_cal_util_component_has_recurrences (subcomp)) {
+					icalproperty *icalprop = icalcomponent_get_first_property (subcomp, ICAL_RRULE_PROPERTY);
+					if (icalprop) 
+						icalproperty_remove_parameter_by_name (icalprop, "X-EVOLUTION-ENDDATE");
+				}
+	
 				e_calendar_view_add_event (cal_view, client, selected_time_start, 
 							   default_zone, subcomp, in_top_canvas);
-			else if (child_kind == ICAL_VTIMEZONE_COMPONENT) {
+			} else if (child_kind == ICAL_VTIMEZONE_COMPONENT) {
 				icaltimezone *zone;
 
 				zone = icaltimezone_new ();


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