Commit 32039403 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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.
parent 1ab667fc
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> 2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
......
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> 2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
......
...@@ -598,8 +598,6 @@ gtk_calendar_init (GtkCalendar *calendar) ...@@ -598,8 +598,6 @@ gtk_calendar_init (GtkCalendar *calendar)
calendar->month = tm->tm_mon; calendar->month = tm->tm_mon;
calendar->year = 1900 + tm->tm_year; calendar->year = 1900 + tm->tm_year;
calendar_compute_days (calendar);
for (i=0;i<31;i++) for (i=0;i<31;i++)
calendar->marked_date[i] = FALSE; calendar->marked_date[i] = FALSE;
calendar->num_marked_dates = 0; calendar->num_marked_dates = 0;
...@@ -684,6 +682,8 @@ gtk_calendar_init (GtkCalendar *calendar) ...@@ -684,6 +682,8 @@ gtk_calendar_init (GtkCalendar *calendar)
priv->week_start = 0; priv->week_start = 0;
} }
#endif #endif
calendar_compute_days (calendar);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment