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:
committed by
Marge Bot
parent
a303759913
commit
5f5e438955
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user