gcal-date-chooser: Update also combined_choice in set_date()

Thus it's in sync with the rest of the date chooser.

Also use a common function to replace `self->date` value.

Related to https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/868
This commit is contained in:
Milan Crha
2022-10-05 15:10:47 +00:00
committed by Georges Basile Stavracas Neto
parent d273b4304f
commit 15ce841a6c
+1 -2
View File
@@ -466,8 +466,7 @@ gcal_date_chooser_set_date (GcalView *view,
g_date_time_get_ymd (self->date, &y1, &m1, &d1);
g_date_time_get_ymd (date, &y2, &m2, &d2);
g_date_time_unref (self->date);
self->date = g_date_time_ref (date);
gcal_set_date_time (&self->date, date);
if (y1 != y2 || m1 != m2)
{