aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/dialogs/recurrence-page.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7ceaa6697c..be26b7455e 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-13 Sushma Rai <rsushma@novell.com>
+
+ * gui/dialogs/recurrence-page.c (make_ending_until_special): Setting
+ two weeks after the start date as default "until" date.
+ Fixes #268906
+
2005-05-12 Harish Krishnaswamy <kharish@novell.com>
on behalf of jack jia <jack.jia@sun.com>
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index 6a201540b3..8f528d230d 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -1290,6 +1290,7 @@ make_ending_until_special (RecurrencePage *rpage)
{
RecurrencePagePrivate *priv;
EDateEdit *de;
+ ECalComponentDateTime dt_start;
priv = rpage->priv;
@@ -1308,9 +1309,11 @@ make_ending_until_special (RecurrencePage *rpage)
/* 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);
+ /* Setting the default until time to 2 weeks */
+ icaltime_adjust (dt_start.value, 14, 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);