Call calendar_compute_days() after setting priv->week_start.

2005-10-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcalendar.c (gtk_calendar_init): Call
	calendar_compute_days() after setting priv->week_start.
This commit is contained in:
Matthias Clasen 2005-10-04 03:28:36 +00:00 committed by Matthias Clasen
parent 1ab667fcbb
commit 3203940359
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Call
calendar_compute_days() after setting priv->week_start.
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when

View File

@ -1,3 +1,8 @@
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcalendar.c (gtk_calendar_init): Call
calendar_compute_days() after setting priv->week_start.
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when

View File

@ -598,8 +598,6 @@ gtk_calendar_init (GtkCalendar *calendar)
calendar->month = tm->tm_mon;
calendar->year = 1900 + tm->tm_year;
calendar_compute_days (calendar);
for (i=0;i<31;i++)
calendar->marked_date[i] = FALSE;
calendar->num_marked_dates = 0;
@ -684,6 +682,8 @@ gtk_calendar_init (GtkCalendar *calendar)
priv->week_start = 0;
}
#endif
calendar_compute_days (calendar);
}