[evolution] simple_recur_to_comp: Obtain the week start day from CompEditor.



commit a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Mar 9 07:12:08 2013 -0500

    simple_recur_to_comp: Obtain the week start day from CompEditor.

 calendar/gui/dialogs/recurrence-page.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index 4b2fce1..3dd6d7c 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 */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]