mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
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)
This commit is contained in:
parent
848ce39f7a
commit
c75be4f1f5
@ -1,3 +1,8 @@
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
|
||||
of week_start. (#314473, JP Rosevaar)
|
||||
|
||||
2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
|
||||
|
||||
* gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-08-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcalendar.c (gtk_calendar_init): Fix the calculation
|
||||
of week_start. (#314473, JP Rosevaar)
|
||||
|
||||
2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
|
||||
|
||||
* gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user