aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
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/gui
parentaab8b5c8273f6847f4ab33ebc5fa771d6a85832c (diff)
downloadgsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar
gsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar.gz
gsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar.bz2
gsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar.lz
gsoc2013-evolution-a3a47f72618ee7c1e36750985967c18e3e3998e6.tar.xz
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/gui')
-rw-r--r--calendar/gui/dialogs/recurrence-page.c9
1 files changed, 6 insertions, 3 deletions
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);