core: Add "expand-recurrences" property to GcalCalendarMonitor and GcalTimeline

Add an "expand-recurrences" boolean property (defaulting to TRUE) to both
GcalCalendarMonitor and GcalTimeline. When set to FALSE:
- Recurring master components are kept as single events without expanding
  each recurrence instance.
- Detached recurrence instances are ignored.
- Pruning outside range retains recurring master events so they are not
  prematurely removed.
- Subscriber filtering permits recurring master events within the
  subscriber model.

This allows consumers like search providers to avoid expanding all recurrence
instances when searching, improving performance and avoiding duplicate hits.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/808>
This commit is contained in:
John Cardullo
2026-10-27 11:10:58 -07:00
parent 4defb0019b
commit 9d29a7a34e
4 changed files with 102 additions and 9 deletions
+2
View File
@@ -43,4 +43,6 @@ void gcal_calendar_monitor_set_filter (GcalCalendarMo
gboolean gcal_calendar_monitor_is_complete (GcalCalendarMonitor *self);
gboolean gcal_calendar_monitor_get_expand_recurrences (GcalCalendarMonitor *self);
G_END_DECLS