From 2c476f6d0270a328ad46582e3cbd1ddbd70132c1 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 25 Feb 2025 09:47:27 -0600 Subject: [PATCH] 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: --- src/gui/event-editor/gcal-schedule-section.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gui/event-editor/gcal-schedule-section.c b/src/gui/event-editor/gcal-schedule-section.c index 7ffab255..572bdaa3 100644 --- a/src/gui/event-editor/gcal-schedule-section.c +++ b/src/gui/event-editor/gcal-schedule-section.c @@ -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 */