From a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 9 Mar 2013 07:12:08 -0500 Subject: simple_recur_to_comp: Obtain the week start day from CompEditor. --- calendar/gui/dialogs/recurrence-page.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index 4b2fce1d16..3dd6d7ce2c 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -730,6 +730,7 @@ static void simple_recur_to_comp (RecurrencePage *rpage, ECalComponent *comp) { + CompEditor *editor; RecurrencePagePrivate *priv; struct icalrecurrencetype r; GSList l; @@ -738,6 +739,8 @@ simple_recur_to_comp (RecurrencePage *rpage, priv = rpage->priv; + editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (rpage)); + icalrecurrencetype_clear (&r); /* Frequency, interval, week start */ @@ -745,8 +748,8 @@ simple_recur_to_comp (RecurrencePage *rpage, r.freq = e_dialog_combo_box_get (priv->interval_unit_combo, freq_map); r.interval = gtk_spin_button_get_value_as_int ( GTK_SPIN_BUTTON (priv->interval_value)); - r.week_start = ICAL_SUNDAY_WEEKDAY - + e_meeting_store_get_week_start_day (priv->meeting_store); + r.week_start = ICAL_SUNDAY_WEEKDAY + + comp_editor_get_week_start_day (editor); /* Frequency-specific data */ -- cgit