Federico Mena Quintero 9d8c6486eb gcal_schedule_section_day_changed() - Use the original dates
The original code from commit 10234653 is

  GCAL_RETURN (gcal_date_time_compare_date (start_date, gcal_event_get_date_start (self->event)) < 0 ||
               gcal_date_time_compare_date (end_date, gcal_event_get_date_end (self->event)) > 0);

but it doesn't explain why it just checks for the modified event
getting "wider" (earlier start, later end) than the original event.

I don't understand that logic, i.e. why doesn't it just check that the
dates changed.

Still, now that we keep the original date-time in the
GcalScheduleValues, use them to preserve the original semantics.

I'm not sure exactly what to test about this... a test to preserve those
semantics?  A test that the function, per its name, returns true if
the days are strictly different?

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/550>
2025-08-27 20:00:00 -03:00
2025-08-27 18:45:25 +02:00
2025-04-04 23:59:13 +00:00
2019-05-04 12:05:39 -03:00
2018-07-31 12:35:56 -03:00
2025-06-25 15:51:42 +00:00
2012-04-25 23:56:34 -04:00
2025-07-05 17:43:42 -03:00
2025-07-05 17:41:18 -03:00

GNOME Calendar

GNOME Calendar is a simple and beautiful calendar application for GNOME. We give a lot of attention to details, and as such, design is an essential and ongoing effort.

Flatpak

Contributors Guide

Check out our CONTRIBUTING.md and HACKING.md for more details.

S
Description
No description provided
Readme
19 MiB
Languages
C 97.6%
Meson 1.2%
CSS 0.7%
Python 0.3%
Shell 0.2%