aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2006-01-13 18:33:08 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2006-01-13 18:33:08 +0800
commit69c69f34daba5325c05bfb7f2f0721fec7492f6d (patch)
tree738970c1eb1ba35aef2c700e288b7e7e946f2e76 /calendar
parentc8ca795c9291d5b85f5ed5ed818188477b012ed9 (diff)
downloadgsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar
gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.gz
gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.bz2
gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.lz
gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.xz
gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.tar.zst
gsoc2013-evolution-69c69f34daba5325c05bfb7f2f0721fec7492f6d.zip
fixes #311888
svn path=/trunk/; revision=31164
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/dialogs/recurrence-page.c16
2 files changed, 22 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b83b5474b7..65b57966b3 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-13 Chenthill Palanisamy <pchenthill@novell.com>
+
+ Fixes #311888
+ * gui/dialogs/recurrence-page.c: (recurrence_page_set_dates):
+ Set the selection based on the start date of the appointment.
+
2006-01-13 Johnny Jacob <johnnyjacob@gmail.com>
* gui/dialogs/comp-editor-page.c: (comp_editor_page_class_init),
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);