aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-03-09 20:12:08 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-03-09 20:13:59 +0800
commita1b3f2e2ebc92628f4711b2c3eee9adae7a104cd (patch)
tree81d3c78d04354feaea666c11344ed4d871d3fdae /calendar
parentcb63647c88004417175888cd06a96a1b1ecbb050 (diff)
downloadgsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.tar
gsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.tar.gz
gsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.tar.bz2
gsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.tar.lz
gsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.tar.xz
gsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.tar.zst
gsoc2013-evolution-a1b3f2e2ebc92628f4711b2c3eee9adae7a104cd.zip
simple_recur_to_comp: Obtain the week start day from CompEditor.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/dialogs/recurrence-page.c7
1 files changed, 5 insertions, 2 deletions
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 */