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: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/742>
This commit is contained in:
Georges Basile Stavracas Neto
2026-05-03 16:57:50 +00:00
committed by Marge Bot
parent a303759913
commit 5f5e438955
+4 -1
View File
@@ -20,7 +20,7 @@
#pragma once
#include <glib-object.h>
#include <gio/gio.h>
#define LIBICAL_GLIB_UNSTABLE_API
#include <libical-glib/libical-glib.h>
@@ -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);