views/dazzling-month-view: Initialize on current date

Calling gcal_view_set_date() ensures that all week rows have
their ranges setup. This will be useful later.
This commit is contained in:
Georges Basile Stavracas Neto
2023-08-11 15:13:44 -03:00
parent a527bbe5dc
commit 72d4f45cd1
+5
View File
@@ -870,6 +870,8 @@ gcal_dazzling_month_view_class_init (GcalDazzlingMonthViewClass *klass)
static void
gcal_dazzling_month_view_init (GcalDazzlingMonthView *self)
{
g_autoptr (GDateTime) now = NULL;
gtk_widget_init_template (GTK_WIDGET (self));
update_weekday_labels (self);
@@ -882,4 +884,7 @@ gcal_dazzling_month_view_init (GcalDazzlingMonthView *self)
}
gtk_widget_insert_after (self->header, GTK_WIDGET (self), NULL);
now = g_date_time_new_now_local ();
gcal_view_set_date (GCAL_VIEW (self), now);
}