Go to file
Sebastian Keller 99c97707ac calendar: Fix showing "Next Week" on Sundays
The original code was assuming that getDay() on a Sunday would
return 7 rather than 0. This broke the "Next Week" logic
in several places.
This commit introduces a dayInWeek variable which takes the following
values on the according days:

weekstart = 1:
Mo: 0
Tu: 1
We: 2
Th: 3
Fr: 4
Sa: 5
Su: 6

weekstart = 0:
Su: 0
Mo: 1
Tu: 2
We: 3
Th: 4
Fr: 5
Sa: 6

Using this we can simplify and fix the conditional that decides
whether to show "This week" or "Next week" which was broken on
Sundays.

This commit also fixes the period that gets shown for "Next week"
on Sundays. Due to the bug it was 13 + 1 - 0 or 13 + 0 - 0 on
Sundays:

weekStart = 1:
saturday: saturday + 13 - day_in_week = saturday + 8 = sunday next week
sunday: sunday + 13 - day_in_week = sunday + 7 = sunday next week

weekStart = 0:
friday: friday + 13 - day_in_week = friday + 8 = saturday next week
saturday: saturday + 13 - day_in_week = friday + 7 = saturday next week

https://bugzilla.gnome.org/show_bug.cgi?id=682198
2012-08-20 22:51:45 +02:00
.settings Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
browser-plugin shellDBus: Add a real error reporting system to InstallExtensionRemote 2012-07-02 18:29:56 -04:00
data theme: Put back the transition from overview to desktop for the message tray 2012-08-20 16:51:12 -04:00
docs Don't build documentation for the recorder when it's disabled 2012-07-10 19:36:57 +02:00
js calendar: Fix showing "Next Week" on Sundays 2012-08-20 22:51:45 +02:00
man docs: Update man page 2011-06-02 15:36:04 +02:00
po Updated Spanish translation 2012-08-20 20:04:06 +02:00
src search: Junk the OpenSearch system 2012-08-19 21:19:17 -04:00
tests tests: Remove JHBUILD_TYPELIBDIR 2012-08-07 11:51:12 -03:00
tools jhbuildrc-gnome-shell: remove versioned-xulrunner-directories workaround 2012-02-23 15:14:12 -05:00
.gitignore .gitignore: Update 2012-07-14 18:27:10 -04:00
.project Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
AUTHORS Initial commit 2008-10-31 04:22:44 +00:00
autogen.sh Modernize autotools configuration 2010-02-11 21:02:21 +01:00
configure.ac build: Require clutter-1.0 >= 1.11.11 2012-08-18 08:56:38 +02:00
COPYING Initial commit 2008-10-31 04:22:44 +00:00
gnome-shell.doap doap: Add myself as maintainer 2012-03-30 14:39:02 +02:00
MAINTAINERS MAINTAINERS: Fix my email address 2011-05-23 09:15:58 -04:00
Makefile.am docs: Allow building API documentation 2011-10-20 22:48:44 +02:00
NEWS Bump version to 3.5.5 2012-08-07 21:26:18 +02:00
README Add README and DOAP file 2009-09-04 15:23:13 -04:00

GNOME Shell provides core user interface functions for the GNOME 3 desktop,
like switching to windows and launching applications. GNOME Shell takes
advantage of the capabilities of modern graphics hardware and introduces
innovative user interface concepts to provide a visually attractive and
easy to use experience.

For more information about GNOME Shell, including instructions on how
to build GNOME Shell from source and how to get involved with the project,
see:

 http://live.gnome.org/GnomeShell

Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
product.

License
=======
GNOME Shell is distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.