[evolution-patches] hackfest: Fix for #268906



Please review.

Thanks,
-Sushma.
Index: calendar/ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2731
diff -u -p -r1.2731 ChangeLog
--- calendar/ChangeLog	12 May 2005 11:11:37 -0000	1.2731
+++ calendar/ChangeLog	12 May 2005 12:15:55 -0000
@@ -1,3 +1,9 @@
+2005-05-12  Sushma Rai  <rsushma novell com>
+
+	* gui/dialogs/recurrence-page.c (make_ending_until_special): Setting
+	ten days after the start date as default date for until. 
+	Fixes #268906
+
 2005-05-12  Harish Krishnaswamy  <kharish novell com>
 
 	on behalf of jack jia <jack jia sun com>
Index: calendar/gui/dialogs/recurrence-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/recurrence-page.c,v
retrieving revision 1.63
diff -u -p -r1.63 recurrence-page.c
--- calendar/gui/dialogs/recurrence-page.c	26 Jan 2005 12:38:05 -0000	1.63
+++ calendar/gui/dialogs/recurrence-page.c	12 May 2005 12:16:23 -0000
@@ -1291,6 +1291,7 @@ make_ending_until_special (RecurrencePag
 {
 	RecurrencePagePrivate *priv;
 	EDateEdit *de;
+	ECalComponentDateTime dt_start;
 
 	priv = rpage->priv;
 
@@ -1309,9 +1310,10 @@ make_ending_until_special (RecurrencePag
 
 	/* Set the value */
 
-	e_date_edit_set_date (de, priv->ending_date_tt.year,
-			      priv->ending_date_tt.month,
-			      priv->ending_date_tt.day);
+	e_cal_component_get_dtstart (priv->comp, &dt_start);
+	icaltime_adjust (dt_start.value, 10, 0, 0, 0); 
+	e_date_edit_set_date (de, dt_start.value->year, dt_start.value->month, dt_start.value->day);
+	e_cal_component_free_datetime (&dt_start);
 
 	g_signal_connect((de), "changed",
 			    G_CALLBACK (ending_until_changed_cb), rpage);


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