diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-08-26 06:28:40 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-26 06:28:40 +0000 |
commit | c75be4f1f5ca30dbb7f87454279f0b98d986b46e (patch) | |
tree | f0dadc2892c54cac4a576f983d8f54bbf32c7631 /gtk/gtkcalendar.c | |
parent | 848ce39f7a13821af0833b36d5bb9aa3a866a1cd (diff) | |
download | gdk-pixbuf-c75be4f1f5ca30dbb7f87454279f0b98d986b46e.tar.gz |
Fix the calculation of week_start. (#314473, JP Rosevaar)
2005-08-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
of week_start. (#314473, JP Rosevaar)
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r-- | gtk/gtkcalendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 60dd69fe2..e49fe9f93 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -652,7 +652,7 @@ gtk_calendar_init (GtkCalendar *calendar) #ifdef HAVE__NL_TIME_FIRST_WEEKDAY week_start = nl_langinfo (_NL_TIME_FIRST_WEEKDAY); - priv->week_start = *((unsigned char *) week_start) % 7 - 1; + priv->week_start = (*((unsigned char *) week_start) - 1) % 7; #else /* Translate to calendar:week_start:0 if you want Sunday to be the * first day of the week to calendar:week_start:1 if you want Monday |