diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-13 18:33:08 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-01-13 18:33:08 +0800 |
commit | 69c69f34daba5325c05bfb7f2f0721fec7492f6d (patch) | |
tree | 738970c1eb1ba35aef2c700e288b7e7e946f2e76 /calendar/gui/dialogs | |
parent | c8ca795c9291d5b85f5ed5ed818188477b012ed9 (diff) | |
download | gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.gz gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.zst gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.zip |
fixes #311888
svn path=/trunk/; revision=31164
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index 2ec7145dcf..ec44ce269a 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -1908,6 +1908,22 @@ recurrence_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates) priv->weekday_blocked_day_mask); } } + + if (COMP_EDITOR_PAGE (rpage)->flags & COMP_EDITOR_PAGE_NEW_ITEM) { + ECalendar *ecal; + GDate *start, *end; + + ecal = E_CALENDAR (priv->preview_calendar); + start = g_date_new (); + end = g_date_new (); + + g_date_set_dmy (start, dates->start->value->day, dates->start->value->month, dates->start->value->year); + g_date_set_dmy (end, dates->end->value->day, dates->end->value->month, dates->end->value->year); + e_calendar_item_set_selection (ecal->calitem, start, end); + + g_date_free (start); + g_date_free (end); + } /* Make sure the preview gets updated. */ preview_recur (rpage); |