After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 257320 - week view not persistent
week view not persistent
Status: RESOLVED NOTABUG
Product: evolution
Classification: Applications
Component: Calendar
2.8.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on: 216957
Blocks:
 
 
Reported: 2004-04-21 08:30 UTC by Duncan Sargeant
Modified: 2013-09-13 00:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Duncan Sargeant 2004-04-21 08:30:47 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:

The week view is not persistent.  If you set the view to week view, then
select another date in the date navigator, it resets to day view.

Steps to reproduce the problem:
1. Select 'week' view button in the toolbar
2. Select any date in the date navigator

Actual Results:

Requested day is displayed.

Expected Results:

Requested week should be displayed.

How often does this happen? 

Always.

Additional Information:

Workaround is to show week numbers, and click on the week numbers instead
of the desired date.
Comment 1 André Klapper 2004-05-25 09:22:27 UTC
somehow related to bug 243938.
Comment 2 André Klapper 2004-06-24 19:03:09 UTC
still the same behaviour in evolution1.5-1.5.9.0.200406211628-0.snap.
ximian.8.1.
Comment 3 André Klapper 2005-01-20 12:49:07 UTC
still valid in evolution-2.1.3.2.0.200501160930-0.snap.ximian.10.1.
Comment 4 Dinesh Layek 2005-09-08 10:07:19 UTC
this is because of the following code in gnome-cal.c
(gnome_calendar_on_date_navigator_selection_changed):

        if (new_days_shown > 9) {
                priv->range_selected = TRUE;

                e_week_view_set_weeks_shown (E_WEEK_VIEW (priv->month_view),
                                             (new_days_shown + 6) / 7);
                view_type = GNOME_CAL_MONTH_VIEW;
        } else if (new_days_shown == 7 && starts_on_week_start_day) {
                view_type = GNOME_CAL_WEEK_VIEW;
        } else {
                e_day_view_set_days_shown (E_DAY_VIEW (priv->day_view),
new_days_shown);

                if (new_days_shown == 5 && starts_on_week_start_day
                    && priv->current_view_type == GNOME_CAL_WORK_WEEK_VIEW)
                        view_type = GNOME_CAL_WORK_WEEK_VIEW;
                else
                        view_type = GNOME_CAL_DAY_VIEW;
        }

If we comment this portion it will remain in the same view.
Actually the view is changed tentatively to give more importance on the selected
days.
I think its not a bug. Moving to NEEDINFO.
Comment 5 Trent "Lathiat" Lloyd 2005-09-08 10:51:57 UTC
Well its my personal opinion that it should stay in the view you put it in as
when I'm browsing around my calendar I like to see the week, all the information
on that day is available so your not exactly missing out, and really I just want
it in the mode I asked it to be in and it shouldn't change it on me.

What do other people think?
Comment 6 Chenthill P 2005-12-21 07:41:13 UTC
Makes sense. Reopening the bug.
Comment 7 André Klapper 2006-05-31 14:19:26 UTC
i'd like to force a decision on this, targetting to 2.7.
srini, any comments? the code that has to be outcommented is attached to this bug.
Comment 8 Duncan Sargeant 2006-06-01 03:56:17 UTC
I'd say leave the behaviour as is.

1.  I appear to be the only one complaining
2.  I'm more than happy with the workaround, which is to click on the week number to bring up the week view for that week.
3.  Apparently the behaviour is compatible with MS Outlook, and would potentially confuse new users coming from there.
4.  The behaviour is perfectly consistent once you understand what it does.

Really my problem before was that I didn't know about clicking on the week number to bring up the week view.
Comment 9 Harish Krishnaswamy 2006-06-01 04:43:43 UTC
Okay - let us look at it this way - 
The Date navigator sets the view to whatever is selected on it and hence, offers  wider choices than a day/week view. Just select 3 consecutive days or any arbitrary length of days across months - watch how the view changes.

I hope this surfaces the value of the current behavior.
As Duncan observes above, just click on the week number (for random access to a week) or use the Prev/Next button which is what might be wanted most of the times.
Resolving this as not a bug.

Thanks Duncan