Commit 98988600 authored by Matthew Barnes's avatar Matthew Barnes
Browse files

goto-dialog: ECalendarItem sets its own week start day.

By way of ESettingsCalendarItem.
parent 51bc12dd
......@@ -238,7 +238,6 @@ goto_dialog (GtkWindow *parent,
time_t start_time;
struct icaltimetype tt;
icaltimezone *timezone;
gint week_start_day;
gint b;
if (dlg) {
......@@ -284,10 +283,6 @@ goto_dialog (GtkWindow *parent,
dlg->ecal->calitem->selection_end_month_offset = 0;
dlg->ecal->calitem->selection_end_day = tt.day;
/* Set week_start_day. Convert it to 0 (Mon) to 6 (Sun), which is what we use. */
week_start_day = e_cal_model_get_week_start_day (model);
dlg->ecal->calitem->week_start_day = (week_start_day + 6) % 7;
gnome_canvas_item_grab_focus (GNOME_CANVAS_ITEM (dlg->ecal->calitem));
b = gtk_dialog_run (GTK_DIALOG (dlg->dialog));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment