New function to set the all_day flag on GcalScheduleValues

You may think that this is too much indirection.  But wait!  This is
the start of enabling tests.  Hang in there.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/550>
This commit is contained in:
Federico Mena Quintero
2025-08-27 19:59:17 -03:00
committed by Georges Basile Stavracas Neto
parent a4d891aadd
commit 2c476f6d02
@@ -98,6 +98,15 @@ gcal_schedule_values_copy (const GcalScheduleValues *values)
return copy;
}
static GcalScheduleValues *
gcal_schedule_values_set_all_day (const GcalScheduleValues *values, gboolean all_day)
{
GcalScheduleValues *copy = gcal_schedule_values_copy (values);
copy->all_day = all_day;
return copy;
}
/*
* Auxiliary methods
*/