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:
Matthias Clasen 2005-08-26 06:28:40 +00:00 committed by Matthias Clasen
parent 848ce39f7a
commit c75be4f1f5
3 changed files with 11 additions and 1 deletions

View File

@ -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> 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
* gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK

View File

@ -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> 2005-08-25 Thomas Fitzsimmons <fitzsim@redhat.com>
* gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK * gtk/gtkfilesystemmodel.c (idle_finished_loading_cb): Acquire GDK

View File

@ -652,7 +652,7 @@ gtk_calendar_init (GtkCalendar *calendar)
#ifdef HAVE__NL_TIME_FIRST_WEEKDAY #ifdef HAVE__NL_TIME_FIRST_WEEKDAY
week_start = nl_langinfo (_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 #else
/* Translate to calendar:week_start:0 if you want Sunday to be the /* 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 * first day of the week to calendar:week_start:1 if you want Monday