Start sketching gcal_schedule_values_set_start_date()

But we need a test first!

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 938419c1d4
commit cdc602bb1f
@@ -139,6 +139,21 @@ gcal_schedule_values_set_time_format (const GcalScheduleValues *values, GcalTime
return copy;
}
/* The start_date_row widget has changed. We need to sync it to the values and
* adjust the other values based on it.
*/
static GcalScheduleValues *
gcal_schedule_values_set_start_date (const GcalScheduleValues *values, GDateTime *t)
{
GcalScheduleValues *copy = gcal_schedule_values_copy (values);
/* move from on_start_date_changed_cb */
/* copy t to date_start */
/* the conditional is to adjust in case start > end. Write a test for that. */
}
static WidgetState *
widget_state_from_values (const GcalScheduleValues *values)
{