aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
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);