From 5f5e438955da3aeae532a5bc8dcd5f558e937339 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 4 Apr 2026 19:16:09 -0300 Subject: [PATCH] core/timeline-subscriber: Add set_model() vfunc This is the entry point that will allow views to use models instead of the manual add/remove/update_events vfuncs. Part-of: --- src/core/gcal-timeline-subscriber.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/gcal-timeline-subscriber.h b/src/core/gcal-timeline-subscriber.h index fa8fe0f0..52bd29da 100644 --- a/src/core/gcal-timeline-subscriber.h +++ b/src/core/gcal-timeline-subscriber.h @@ -20,7 +20,7 @@ #pragma once -#include +#include #define LIBICAL_GLIB_UNSTABLE_API #include @@ -49,6 +49,9 @@ struct _GcalTimelineSubscriberInterface void (*remove_event) (GcalTimelineSubscriber *self, GcalEvent *event); + + void (*set_model) (GcalTimelineSubscriber *self, + GListModel *model); }; GcalRange* gcal_timeline_subscriber_get_range (GcalTimelineSubscriber *self);