aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2005-05-13 16:46:01 +0800
committerSushma Rai <rsushma@src.gnome.org>2005-05-13 16:46:01 +0800
commita3a47f72618ee7c1e36750985967c18e3e3998e6 (patch)
tree01b1796e334da49f84f0fa436dc4c3f9413a4b34 /calendar
parentaab8b5c8273f6847f4ab33ebc5fa771d6a85832c (diff)
downloadgsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar.gz
gsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar.zst
gsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.zip
Setting default until date to 2 weeks after the start date. Fixes #268906
svn path=/trunk/; revision=29347
Diffstat (limited to 'calendar')
-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);