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



commit 989886007f3f69ca64e383ad6d64ef8c352f6df8
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Mar 6 13:09:49 2013 -0500

    goto-dialog: ECalendarItem sets its own week start day.
    
    By way of ESettingsCalendarItem.

 calendar/gui/dialogs/goto-dialog.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/calendar/gui/dialogs/goto-dialog.c b/calendar/gui/dialogs/goto-dialog.c
index 1324388..64c40ff 100644
--- a/calendar/gui/dialogs/goto-dialog.c
+++ b/calendar/gui/dialogs/goto-dialog.c
@@ -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));


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